From bf35f97961306fa3dad817309cac0e48dd7b289b Mon Sep 17 00:00:00 2001
From: Ai Ling <50992674+ailing35@users.noreply.github.com>
Date: Mon, 24 Oct 2022 22:34:28 +0800
Subject: [PATCH] [offers][fix] Use title typeahead, add default currency and
remove specialization field (#423)
---
.../portal/src/components/offers/constants.ts | 20 ----
.../offersSubmission/OffersSubmissionForm.tsx | 41 ++++----
.../submissionForm/BackgroundForm.tsx | 60 +++++++----
.../submissionForm/OfferDetailsForm.tsx | 99 +++++++------------
.../src/components/offers/table/OffersRow.tsx | 7 +-
apps/portal/src/pages/offers/home.tsx | 15 ++-
.../pages/offers/profile/[offerProfileId].tsx | 14 ++-
7 files changed, 120 insertions(+), 136 deletions(-)
diff --git a/apps/portal/src/components/offers/constants.ts b/apps/portal/src/components/offers/constants.ts
index 10e3b0b1..e2b14d96 100644
--- a/apps/portal/src/components/offers/constants.ts
+++ b/apps/portal/src/components/offers/constants.ts
@@ -2,26 +2,6 @@ import { EducationBackgroundType } from './types';
export const emptyOption = '----';
-// TODO: use enums
-export const titleOptions = [
- {
- label: 'Software Engineer',
- value: 'Software Engineer',
- },
- {
- label: 'Frontend Engineer',
- value: 'Frontend Engineer',
- },
- {
- label: 'Backend Engineer',
- value: 'Backend Engineer',
- },
- {
- label: 'Full-stack Engineer',
- value: 'Full-stack Engineer',
- },
-];
-
export const locationOptions = [
{
label: 'Singapore, Singapore',
diff --git a/apps/portal/src/components/offers/offersSubmission/OffersSubmissionForm.tsx b/apps/portal/src/components/offers/offersSubmission/OffersSubmissionForm.tsx
index 95d43be8..0e1127ab 100644
--- a/apps/portal/src/components/offers/offersSubmission/OffersSubmissionForm.tsx
+++ b/apps/portal/src/components/offers/offersSubmission/OffersSubmissionForm.tsx
@@ -115,7 +115,7 @@ export default function OffersSubmissionForm({
),
hasNext: true,
hasPrevious: false,
- label: 'Offer details',
+ label: 'Offers',
},
{
component: