Skip to content

Commit

Permalink
Merge pull request #453 from cisagov/crasm-330
Browse files Browse the repository at this point in the history
Removes filter counts in UI dashboard to make search experience less confusing
  • Loading branch information
schmelz21 authored Jul 17, 2024
2 parents 44bc491 + 2b6bc35 commit 74c36e2
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions frontend/src/components/FacetFilter.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { memo, useMemo } from 'react';
import React, { useMemo } from 'react';
import { FormGroup, FormControlLabel, Checkbox } from '@mui/material';
import { styled } from '@mui/material/styles';

Expand All @@ -24,10 +24,6 @@ export const FacetFilter: React.FC<Props> = (props) => {
}
};

const OptionTotal = memo(({ count }: { count: number }) => {
return <span className={classes.count}>{count}</span>;
});

const fixedOptions = useMemo(() => {
return options;
// NOTE: Desired functionality is to calculate on mount - Update deps and remove the below rule if this changes
Expand All @@ -52,7 +48,6 @@ export const FacetFilter: React.FC<Props> = (props) => {
label={
<>
<span>{opt.value}</span>
<OptionTotal count={opt.count} />
</>
}
/>
Expand Down

0 comments on commit 74c36e2

Please sign in to comment.