Use a default inbox for the home view for now, combining the two library and subscription queries

This commit is contained in:
Jackson Harper
2024-08-07 14:55:19 +08:00
parent 3f73a969f4
commit 15f201fcfc
5 changed files with 23 additions and 14 deletions

View File

@ -20,7 +20,7 @@ import { MoveToInboxIcon } from '../../elements/icons/MoveToInboxIcon'
export type MultiSelectProps = {
viewer: UserBasicData | undefined
folder: string
folder: string | undefined
searchTerm: string | undefined
applySearchQuery: (searchQuery: string) => void

View File

@ -80,7 +80,7 @@ const debouncedFetchSearchResults = debounce((query, cb) => {
const TIMEOUT_DELAYS = [2000, 3500, 5000]
type LibraryContainerProps = {
folder: string
folder: string | undefined
filterFunc: (item: LibraryItemNode) => boolean
showNavigationMenu: boolean
@ -101,13 +101,11 @@ export function LibraryContainer(props: LibraryContainerProps): JSX.Element {
const gridContainerRef = useRef<HTMLDivElement>(null)
const [labelsTarget, setLabelsTarget] = useState<LibraryItem | undefined>(
undefined
)
const [labelsTarget, setLabelsTarget] =
useState<LibraryItem | undefined>(undefined)
const [notebookTarget, setNotebookTarget] = useState<LibraryItem | undefined>(
undefined
)
const [notebookTarget, setNotebookTarget] =
useState<LibraryItem | undefined>(undefined)
const [showAddLinkModal, setShowAddLinkModal] = useState(false)
const [showEditTitleModal, setShowEditTitleModal] = useState(false)
@ -928,7 +926,7 @@ export function LibraryContainer(props: LibraryContainerProps): JSX.Element {
}
export type HomeFeedContentProps = {
folder: string
folder: string | undefined
items: LibraryItem[]
searchTerm?: string
gridContainerRef: React.RefObject<HTMLDivElement>
@ -1067,7 +1065,7 @@ function HomeFeedGrid(props: HomeFeedContentProps): JSX.Element {
}
type LibraryItemsLayoutProps = {
folder: string
folder: string | undefined
layout: LayoutType
viewer?: UserBasicData
@ -1305,7 +1303,7 @@ export function LibraryItemsLayout(
}
type LibraryItemsProps = {
folder: string
folder: string | undefined
items: LibraryItem[]
layout: LayoutType
viewer: UserBasicData | undefined

View File

@ -26,7 +26,7 @@ export type LibraryHeaderProps = {
layout: LayoutType
updateLayout: (layout: LayoutType) => void
folder: string
folder: string | undefined
searchTerm: string | undefined
applySearchQuery: (searchQuery: string) => void