From 2feec859819c0ffad1d6b76cdf6f4e6ae8791d9e Mon Sep 17 00:00:00 2001 From: Jeff Sieu Date: Sat, 8 Oct 2022 20:51:37 +0800 Subject: [PATCH] [question][chore] add constants.ts --- .../components/questions/LandingComponent.tsx | 51 +++-------------- .../questions/filter/FilterSection.tsx | 2 + apps/portal/src/pages/questions/index.tsx | 57 ++----------------- apps/portal/src/utils/questions/constants.ts | 50 ++++++++++++++++ 4 files changed, 67 insertions(+), 93 deletions(-) create mode 100644 apps/portal/src/utils/questions/constants.ts diff --git a/apps/portal/src/components/questions/LandingComponent.tsx b/apps/portal/src/components/questions/LandingComponent.tsx index 211d3ece..bfff29fd 100644 --- a/apps/portal/src/components/questions/LandingComponent.tsx +++ b/apps/portal/src/components/questions/LandingComponent.tsx @@ -3,6 +3,12 @@ import { Button, Select } from '@tih/ui'; import NavBar from '~/components/questions/NavBar'; +import { + COMPANIES, + LOCATIONS, + QUESTION_TYPES, +} from '~/utils/questions/constants'; + export type LandingQueryData = { company: string; location: string; @@ -53,20 +59,7 @@ export default function LandingComponent({ @@ -96,20 +76,7 @@ export default function LandingComponent({