diff --git a/apps/portal/src/pages/questions/browse.tsx b/apps/portal/src/pages/questions/browse.tsx
index c6e59ccf..89ca2954 100644
--- a/apps/portal/src/pages/questions/browse.tsx
+++ b/apps/portal/src/pages/questions/browse.tsx
@@ -2,9 +2,10 @@ import { subMonths, subYears } from 'date-fns';
import Head from 'next/head';
import Router, { useRouter } from 'next/router';
import { useEffect, useMemo, useState } from 'react';
+import { Bars3BottomLeftIcon } from '@heroicons/react/20/solid';
import { NoSymbolIcon } from '@heroicons/react/24/outline';
import type { QuestionsQuestionType } from '@prisma/client';
-import { SlideOut, Typeahead } from '@tih/ui';
+import { Button, SlideOut, Typeahead } from '@tih/ui';
import QuestionOverviewCard from '~/components/questions/card/question/QuestionOverviewCard';
import ContributeQuestionCard from '~/components/questions/ContributeQuestionCard';
@@ -69,6 +70,22 @@ export default function QuestionsBrowsePage() {
const [selectedLocations, setSelectedLocations, areLocationsInitialized] =
useSearchFilter('locations');
+ const hasFilters = useMemo(
+ () =>
+ selectedCompanies.length > 0 ||
+ selectedQuestionTypes.length > 0 ||
+ selectedQuestionAge !== 'all' ||
+ selectedRoles.length > 0 ||
+ selectedLocations.length > 0,
+ [
+ selectedCompanies,
+ selectedQuestionTypes,
+ selectedQuestionAge,
+ selectedRoles,
+ selectedLocations,
+ ],
+ );
+
const today = useMemo(() => new Date(), []);
const startDate = useMemo(() => {
return selectedQuestionAge === 'last-year'
@@ -197,7 +214,22 @@ export default function QuestionsBrowsePage() {
return null;
}
const filterSidebar = (
-
+
+