From fb2b729b0e6b95681f28e8a9101079bf3453f852 Mon Sep 17 00:00:00 2001 From: Janson Bunce Date: Wed, 17 Jul 2024 09:50:04 -0700 Subject: [PATCH 1/3] removes filter counts --- frontend/src/components/FacetFilter.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/FacetFilter.tsx b/frontend/src/components/FacetFilter.tsx index 2212d0b5..91f480a4 100644 --- a/frontend/src/components/FacetFilter.tsx +++ b/frontend/src/components/FacetFilter.tsx @@ -52,7 +52,7 @@ export const FacetFilter: React.FC = (props) => { label={ <> {opt.value} - + {/* */} } /> From a348f91551fced55985a318769387a997022de52 Mon Sep 17 00:00:00 2001 From: Janson Bunce Date: Wed, 17 Jul 2024 09:59:29 -0700 Subject: [PATCH 2/3] removes commented out code --- frontend/src/components/FacetFilter.tsx | 5 ----- 1 file changed, 5 deletions(-) diff --git a/frontend/src/components/FacetFilter.tsx b/frontend/src/components/FacetFilter.tsx index 91f480a4..70e9240f 100644 --- a/frontend/src/components/FacetFilter.tsx +++ b/frontend/src/components/FacetFilter.tsx @@ -24,10 +24,6 @@ export const FacetFilter: React.FC = (props) => { } }; - const OptionTotal = memo(({ count }: { count: number }) => { - return {count}; - }); - const fixedOptions = useMemo(() => { return options; // NOTE: Desired functionality is to calculate on mount - Update deps and remove the below rule if this changes @@ -52,7 +48,6 @@ export const FacetFilter: React.FC = (props) => { label={ <> {opt.value} - {/* */} } /> From 2b6bc3595c40b61fbc24942ddce5561b7aacaa14 Mon Sep 17 00:00:00 2001 From: Janson Bunce Date: Wed, 17 Jul 2024 10:34:35 -0700 Subject: [PATCH 3/3] remove unused import --- frontend/src/components/FacetFilter.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/FacetFilter.tsx b/frontend/src/components/FacetFilter.tsx index 70e9240f..313b252e 100644 --- a/frontend/src/components/FacetFilter.tsx +++ b/frontend/src/components/FacetFilter.tsx @@ -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';