mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Handle Inbox filter when not set
This commit is contained in:
parent
4030f8efc4
commit
758efc3845
1 changed files with 2 additions and 2 deletions
|
|
@ -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>
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue