diff --git a/packages/web/components/patterns/LibraryCards/CardTypes.tsx b/packages/web/components/patterns/LibraryCards/CardTypes.tsx index 6c76f16c1..b0ab5e221 100644 --- a/packages/web/components/patterns/LibraryCards/CardTypes.tsx +++ b/packages/web/components/patterns/LibraryCards/CardTypes.tsx @@ -17,6 +17,7 @@ export type LinkedItemCardAction = | 'unsubscribe' | 'update-item' | 'move-to-inbox' + | 'refresh' export type LinkedItemCardProps = { item: LibraryItemNode diff --git a/packages/web/components/templates/library/LibraryContainer.tsx b/packages/web/components/templates/library/LibraryContainer.tsx index 569c03937..76dfbf647 100644 --- a/packages/web/components/templates/library/LibraryContainer.tsx +++ b/packages/web/components/templates/library/LibraryContainer.tsx @@ -53,6 +53,9 @@ import { PinnedButtons } from '../homeFeed/PinnedButtons' import { PinnedSearch } from '../../../pages/settings/pinned-searches' import { FetchItemsError } from '../homeFeed/FetchItemsError' import { LibraryHeader } from './LibraryHeader' +import { TrashIcon } from '../../elements/icons/TrashIcon' +import { theme } from '../../tokens/stitches.config' +import { emptyTrashMutation } from '../../../lib/networking/mutations/emptyTrashMutation' export type LayoutType = 'LIST_LAYOUT' | 'GRID_LAYOUT' @@ -805,6 +808,7 @@ export function LibraryContainer(props: LibraryContainerProps): JSX.Element { return ( void @@ -990,6 +995,7 @@ function HomeFeedGrid(props: HomeFeedContentProps): JSX.Element { {showItems && ( + {props.folder == 'trash' && ( + + + + + + + Items that remain in your trash for 14 days will be permanently + deleted. + + + +
+
+ )} + {props.isValidating && props.items.length == 0 && }
{ @@ -1099,6 +1164,7 @@ export function LibraryItemsLayout( style={{ height: '100%', width: '100%' }} >