Skip to content

Commit

Permalink
feat(457): add filter count to button
Browse files Browse the repository at this point in the history
  • Loading branch information
paulhchoi committed Apr 4, 2024
1 parent e2dbd3b commit b35145a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/components/SidePanelControlBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ import {
SquaresFour,
Table,
} from "@phosphor-icons/react";
<<<<<<< HEAD
import { ThemeButton } from "./ThemeButton";
=======
import { useFilter } from "@/context/FilterContext";
>>>>>>> f1c5e16 (feat(457): add filter count to button)

type SidePanelControlBarProps = {
currentView: string;
Expand All @@ -29,7 +33,12 @@ const SearchBarComponent: FC<SidePanelControlBarProps> = ({
updateCurrentView,
updateSmallScreenMode,
}) => {
<<<<<<< HEAD
const filterRef = useRef<HTMLButtonElement | null>(null);
=======
const { appFilter } = useFilter();
const filterCount = Object.keys(appFilter).length;
>>>>>>> f1c5e16 (feat(457): add filter count to button)

return loading ? (
<div>{/* Keep empty while loading */}</div>
Expand Down

0 comments on commit b35145a

Please sign in to comment.