diff --git a/packages/web/components/templates/homeFeed/HomeFeedContainer.tsx b/packages/web/components/templates/homeFeed/HomeFeedContainer.tsx index f3a8d2998..f80feefeb 100644 --- a/packages/web/components/templates/homeFeed/HomeFeedContainer.tsx +++ b/packages/web/components/templates/homeFeed/HomeFeedContainer.tsx @@ -53,21 +53,6 @@ import { export type LayoutType = 'LIST_LAYOUT' | 'GRID_LAYOUT' -// TODO: remove Commented out code after PR approval (l56-l70 & 730 - 777) -// const timeZoneHourDiff = -new Date().getTimezoneOffset() / 60 - -// const SAVED_SEARCHES: Record = { -// Inbox: `in:inbox`, -// 'Read Later': `in:inbox -label:Newsletter`, -// Highlights: `type:highlights`, -// Today: `in:inbox saved:${ -// new Date(new Date().getTime() - 24 * 3600000).toISOString().split('T')[0] -// }Z${timeZoneHourDiff.toLocaleString('en-US', { -// signDisplay: 'always', -// })}..*`, -// Newsletters: `in:inbox label:Newsletter`, -// } - const fetchSearchResults = async (query: string, cb: any) => { if (!query.startsWith('#')) return const res = await typeaheadSearchQuery({ @@ -727,54 +712,6 @@ function HomeFeedGrid(props: HomeFeedContentProps): JSX.Element { searchTerm={props.searchTerm} applySearchQuery={props.applySearchQuery} /> - { //viewerData?.me && ( - // - // {Object.keys(SAVED_SEARCHES).map((key) => { - // const isInboxTerm = (term: string) => { - // return !term || term === 'in:inbox' - // } - - // const searchQuery = SAVED_SEARCHES[key] - // const style = - // searchQuery === props.searchTerm || - // (!props.searchTerm && isInboxTerm(searchQuery)) - // ? 'ctaDarkYellow' - // : 'ctaLightGray' - // return ( - // - // ) - // })} - // - //) - } {!props.isValidating && props.items.length == 0 ? (