From 77d0714e33b462eb03ce8a9be30c847a8452cf31 Mon Sep 17 00:00:00 2001 From: Ai Ling <50992674+ailing35@users.noreply.github.com> Date: Sun, 23 Oct 2022 01:35:03 +0800 Subject: [PATCH] [offers][fix] Refactor and fix offer analysis (#413) --- .../offersSubmission/OfferProfileSave.tsx | 2 +- .../offersSubmission/OffersSubmissionForm.tsx | 17 ++- .../analysis/OfferAnalysis.tsx | 5 +- .../analysis/OfferPercentileAnalysis.tsx | 27 ---- .../analysis/OfferPercentileAnalysisText.tsx | 27 ++++ .../analysis/OfferProfileCard.tsx | 13 +- .../submissionForm/BackgroundForm.tsx | 12 +- .../submissionForm/OfferDetailsForm.tsx | 32 +++-- .../offers/profile/EducationCard.tsx | 16 +-- .../components/offers/profile/OfferCard.tsx | 4 +- .../offers/profile/ProfileDetails.tsx | 25 ++-- .../offers/profile/ProfileHeader.tsx | 48 ++++--- .../offers/profile/ProfilePhotoHolder.tsx | 12 +- apps/portal/src/components/offers/types.ts | 71 +++++----- apps/portal/src/mappers/offers-mappers.ts | 16 ++- .../pages/offers/profile/[offerProfileId].tsx | 121 ++++++++++-------- .../offers/profile/edit/[offerProfileId].tsx | 10 +- .../router/offers/offers-analysis-router.ts | 1 - .../router/offers/offers-profile-router.ts | 4 +- apps/portal/src/types/offers.d.ts | 1 + 20 files changed, 255 insertions(+), 209 deletions(-) delete mode 100644 apps/portal/src/components/offers/offersSubmission/analysis/OfferPercentileAnalysis.tsx create mode 100644 apps/portal/src/components/offers/offersSubmission/analysis/OfferPercentileAnalysisText.tsx diff --git a/apps/portal/src/components/offers/offersSubmission/OfferProfileSave.tsx b/apps/portal/src/components/offers/offersSubmission/OfferProfileSave.tsx index 071da82a..9ba39af3 100644 --- a/apps/portal/src/components/offers/offersSubmission/OfferProfileSave.tsx +++ b/apps/portal/src/components/offers/offersSubmission/OfferProfileSave.tsx @@ -84,7 +84,7 @@ export default function OfferProfileSave({ onClick={saveProfile} /> -