From 657076d396b08faf422c2d2983d8dab16f0e954a Mon Sep 17 00:00:00 2001 From: Tan Su Yin Date: Fri, 7 Oct 2022 23:06:46 +0800 Subject: [PATCH] [resumes][fix] Remove BrowsePageBody component --- .../resumes/browse/BrowsePageBody.tsx | 226 ------------------ 1 file changed, 226 deletions(-) delete mode 100644 apps/portal/src/components/resumes/browse/BrowsePageBody.tsx diff --git a/apps/portal/src/components/resumes/browse/BrowsePageBody.tsx b/apps/portal/src/components/resumes/browse/BrowsePageBody.tsx deleted file mode 100644 index ee28609f..00000000 --- a/apps/portal/src/components/resumes/browse/BrowsePageBody.tsx +++ /dev/null @@ -1,226 +0,0 @@ -import clsx from 'clsx'; -import { Fragment, useState } from 'react'; -import { Disclosure, Menu, Transition } from '@headlessui/react'; -import { - ChevronDownIcon, - MinusIcon, - PlusIcon, -} from '@heroicons/react/20/solid'; -import { MagnifyingGlassIcon } from '@heroicons/react/24/outline'; -import { Tabs, TextInput } from '@tih/ui'; - -import BrowseListItem from './BrowseListItem'; -import { - EXPERIENCE, - LOCATION, - ROLES, - SORT_OPTIONS, - TEST_RESUMES, - TOP_HITS, -} from './constants'; -import FilterPill from './FilterPill'; - -const filters = [ - { - id: 'roles', - name: 'Roles', - options: ROLES, - }, - { - id: 'experience', - name: 'Experience', - options: EXPERIENCE, - }, - { - id: 'location', - name: 'Location', - options: LOCATION, - }, -]; - -export default function BrowsePageBody() { - const [tabsValue, setTabsValue] = useState('all'); - const [searchValue, setSearchValue] = useState(''); - return ( -
-
-
-

Filters

-
-
-
-
- -
-
-
- - -
-
- -
- - Sort - -
- - - -
- {SORT_OPTIONS.map((option) => ( - - {({ active }) => ( - - {option.name} - - )} - - ))} -
-
-
-
-
-
- -
-
-
-
- -
-
-
-
-

Categories

-
    - {TOP_HITS.map((category) => ( -
  • - {/* TODO: Replace onClick with filtering function */} - true} /> -
  • - ))} -
- - {filters.map((section) => ( - - {({ open }) => ( - <> -

- - - {section.name} - - - {open ? ( - - -

- -
- {section.options.map((option, optionIdx) => ( -
- - -
- ))} -
-
- - )} -
- ))} -
-
-
-
-
    - {TEST_RESUMES.map((resumeObj) => ( -
  • - -
  • - ))} -
-
-
-
- ); -}