Handle Inbox filter when not set

This commit is contained in:
Jackson Harper 2022-04-20 11:36:04 -07:00
parent 4030f8efc4
commit 758efc3845

View file

@ -590,9 +590,9 @@ function HomeFeedGrid(props: HomeFeedContentProps): JSX.Element {
<Box css={{ display: 'flex', width: '100%', height: '44px', marginTop: '16px', gap: '8px', flexDirection: 'row' }}>
{Object.keys(SAVED_SEARCHES).map(key => {
const searchQuery = SAVED_SEARCHES[key]
const style = searchQuery === props.searchTerm ? 'ctaDarkYellow' : 'ctaLightGray'
const style = searchQuery === props.searchTerm || (!props.searchTerm && !searchQuery) ? 'ctaDarkYellow' : 'ctaLightGray'
return (
<Button style={style} onClick={() => { props.applySearchQuery(searchQuery)}}>
<Button key={key} style={style} onClick={() => { props.applySearchQuery(searchQuery)}} css={{ p: '10px 12px', borderRadius: '6px' }}>
{key}
</Button>
)