Skip to content

Commit

Permalink
Updated FolderListPreview to have folderListScrollSnapshot & onUpdate…
Browse files Browse the repository at this point in the history
…FolderListScrollPosition arguments
  • Loading branch information
shamim-emon committed Feb 21, 2025
1 parent 20fae2b commit 5610be0
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,13 @@ internal fun FolderListPreview() {
DISPLAY_FOLDER,
),
selectedFolder = null,
folderListScrollSnapshot = FolderListScrollSnapshot(
scrollPosition = 0,
scrollOffset = 0
),
onFolderClick = {},
showStarredCount = false,
onUpdateFolderListScrollPosition = { _, _ -> },
)
}
}
Expand All @@ -31,8 +36,13 @@ internal fun FolderListPreviewSelected() {
DISPLAY_FOLDER,
),
selectedFolder = DISPLAY_FOLDER,
folderListScrollSnapshot = FolderListScrollSnapshot(
scrollPosition = 0,
scrollOffset = 0
),
onFolderClick = {},
showStarredCount = false,
onUpdateFolderListScrollPosition = { _, _ -> },
)
}
}
Expand All @@ -47,8 +57,13 @@ internal fun FolderListWithUnifiedFolderPreview() {
DISPLAY_FOLDER,
),
selectedFolder = DISPLAY_FOLDER,
folderListScrollSnapshot = FolderListScrollSnapshot(
scrollPosition = 0,
scrollOffset = 0
),
onFolderClick = {},
showStarredCount = false,
onUpdateFolderListScrollPosition = { _, _ -> },
)
}
}

0 comments on commit 5610be0

Please sign in to comment.