Skip to content

Commit

Permalink
Review homepage catalog
Browse files Browse the repository at this point in the history
  • Loading branch information
allyoucanmap committed Aug 1, 2024
1 parent c5fbf66 commit 4f57b04
Show file tree
Hide file tree
Showing 11 changed files with 180 additions and 173 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ const FiltersMenu = forwardRef(({
loading,
hideCardLayoutButton,
cardLayoutStyle,
setCardLayoutStyle
setCardLayoutStyle,
disableFilters
}, ref) => {

const { isMobile } = getConfigProp('geoNodeSettings');
Expand All @@ -50,22 +51,24 @@ const FiltersMenu = forwardRef(({
<div className="gn-menu-container">
<div className="gn-menu-content">
<div className="gn-menu-fill">
{totalFilters > 0 ? <ButtonWithTooltip
variant="primary"
size="sm"
onClick={onClick}
className="gn-success-changes-icon"
tooltip={<Message msgId="gnhome.filterApplied" msgParams={{ count: totalFilters }}/>}
>
{isMobile ? <FaIcon name="filter" /> : <Message msgId="gnhome.filter"/>}
</ButtonWithTooltip> : <Button
variant="primary"
size="sm"
onClick={onClick}
>
{isMobile ? <FaIcon name="filter" /> : <Message msgId="gnhome.filter"/>}
</Button>}
{' '}
{!disableFilters && <>
{totalFilters > 0 ? <ButtonWithTooltip
variant="primary"
size="sm"
onClick={onClick}
className="gn-success-changes-icon"
tooltip={<Message msgId="gnhome.filterApplied" msgParams={{ count: totalFilters }}/>}
>
{isMobile ? <FaIcon name="filter" /> : <Message msgId="gnhome.filter"/>}
</ButtonWithTooltip> : <Button
variant="primary"
size="sm"
onClick={onClick}
>
{isMobile ? <FaIcon name="filter" /> : <Message msgId="gnhome.filter"/>}
</Button>}
{' '}
</>}
{loading ? <span className="resources-count-loading"><Spinner /></span> : <Badge>
<span className="resources-count"> <Message msgId="gnhome.resourcesFound" msgParams={{ count: totalResources }}/> </span>
</Badge>}
Expand Down
Loading

0 comments on commit 4f57b04

Please sign in to comment.