From 08ef869ea360c715d96f3568c3b6aa3a964c8670 Mon Sep 17 00:00:00 2001 From: Stuart Long Chay Boon Date: Fri, 4 Nov 2022 14:30:02 +0800 Subject: [PATCH] [offers][fix] fix merge conflicts --- .../offers/dashboard/DashboardOfferCard.tsx | 14 +---- .../offersSubmission/OffersSubmissionForm.tsx | 53 +------------------ .../components/offers/profile/OfferCard.tsx | 43 +-------------- .../src/components/offers/table/types.ts | 2 +- .../pages/offers/test/generateAnalysis.tsx | 17 ------ .../src/pages/offers/test/getAnalysis.tsx | 14 ----- .../src/pages/offers/test/listOffers.tsx | 53 ------------------- 7 files changed, 4 insertions(+), 192 deletions(-) delete mode 100644 apps/portal/src/pages/offers/test/generateAnalysis.tsx delete mode 100644 apps/portal/src/pages/offers/test/getAnalysis.tsx delete mode 100644 apps/portal/src/pages/offers/test/listOffers.tsx diff --git a/apps/portal/src/components/offers/dashboard/DashboardOfferCard.tsx b/apps/portal/src/components/offers/dashboard/DashboardOfferCard.tsx index a901aba7..1085b7e9 100644 --- a/apps/portal/src/components/offers/dashboard/DashboardOfferCard.tsx +++ b/apps/portal/src/components/offers/dashboard/DashboardOfferCard.tsx @@ -33,7 +33,6 @@ export default function DashboardProfileCard({
-<<<<<<< HEAD

{getLabelForJobTitleType(title as JobTitleType)}{' '} {jobType && <>({JobTypeLabel[jobType]})} @@ -67,17 +66,6 @@ export default function DashboardProfileCard({

)}
-======= -

- {getLabelForJobTitleType(title as JobTitleType)} -

-

- {location - ? `Company: ${company.name}, ${location.cityName}` - : `Company: ${company.name}`} -

- {level &&

Level: {level}

} ->>>>>>> ac2d047d ([offers][feat] integrate location for offer table and profile)

@@ -92,4 +80,4 @@ export default function DashboardProfileCard({

); -} +} \ No newline at end of file diff --git a/apps/portal/src/components/offers/offersSubmission/OffersSubmissionForm.tsx b/apps/portal/src/components/offers/offersSubmission/OffersSubmissionForm.tsx index 313fedfd..bef36c36 100644 --- a/apps/portal/src/components/offers/offersSubmission/OffersSubmissionForm.tsx +++ b/apps/portal/src/components/offers/offersSubmission/OffersSubmissionForm.tsx @@ -289,7 +289,6 @@ export default function OffersSubmissionForm({ steps={breadcrumbSteps} /> -<<<<<<< HEAD
-======= - - - {steps[step]} -
{JSON.stringify(formMethods.watch(), null, 2)}
- {step === 0 && ( -
-
- )} - {step === 1 && ( -
-
- )} - -
->>>>>>> a31230f7 ([offers][feat] Use city typeahead for location field) ); -} +} \ No newline at end of file diff --git a/apps/portal/src/components/offers/profile/OfferCard.tsx b/apps/portal/src/components/offers/profile/OfferCard.tsx index 0668716f..2ed305f3 100644 --- a/apps/portal/src/components/offers/profile/OfferCard.tsx +++ b/apps/portal/src/components/offers/profile/OfferCard.tsx @@ -35,7 +35,6 @@ export default function OfferCard({ }: Props) { function UpperSection() { return ( -<<<<<<< HEAD
@@ -71,17 +70,6 @@ export default function OfferCard({
)}
-======= -
-
-
- - - - - {location ? `${companyName}, ${location.cityName}` : companyName} - ->>>>>>> ac2d047d ([offers][feat] integrate location for offer table and profile)
{!duration && receivedMonth && ( @@ -111,7 +99,6 @@ export default function OfferCard({ } return ( -<<<<<<< HEAD
{jobType === JobType.FULLTIME @@ -155,34 +142,6 @@ export default function OfferCard({
{bonus}
)} -======= - <> - -
-
- {(totalCompensation || monthlySalary) && ( -
- - - - -

- {totalCompensation && `TC: ${totalCompensation}`} - {monthlySalary && `Monthly Salary: ${monthlySalary}`} -

-
-
- )} - {(base || stocks || bonus) && totalCompensation && ( -
-

- Base / year: {base ?? 'N/A'} ⋅ Stocks / year:{' '} - {stocks ?? 'N/A'} ⋅ Bonus / year: {bonus ?? 'N/A'} -

-
- )} -
->>>>>>> ac2d047d ([offers][feat] integrate location for offer table and profile) {negotiationStrategy && (
@@ -210,4 +169,4 @@ export default function OfferCard({
); -} +} \ No newline at end of file diff --git a/apps/portal/src/components/offers/table/types.ts b/apps/portal/src/components/offers/table/types.ts index e9a8c42e..1be3d1e7 100644 --- a/apps/portal/src/components/offers/table/types.ts +++ b/apps/portal/src/components/offers/table/types.ts @@ -56,4 +56,4 @@ export type OfferTableSortByType = | '-monthYearReceived' | '-totalCompensation' | '-totalYoe' - | '+totalYoe'; + | '+totalYoe'; \ No newline at end of file diff --git a/apps/portal/src/pages/offers/test/generateAnalysis.tsx b/apps/portal/src/pages/offers/test/generateAnalysis.tsx deleted file mode 100644 index bf062448..00000000 --- a/apps/portal/src/pages/offers/test/generateAnalysis.tsx +++ /dev/null @@ -1,17 +0,0 @@ -import React from 'react'; - -import { trpc } from '~/utils/trpc'; - -function GenerateAnalysis() { - const analysisMutation = trpc.useMutation(['offers.analysis.generate']); - - return ( -
- {JSON.stringify( - analysisMutation.mutate({ profileId: 'cl9lwe9m902k5utskjs52wc0j' }), - )} -
- ); -} - -export default GenerateAnalysis; diff --git a/apps/portal/src/pages/offers/test/getAnalysis.tsx b/apps/portal/src/pages/offers/test/getAnalysis.tsx deleted file mode 100644 index 7d3de61e..00000000 --- a/apps/portal/src/pages/offers/test/getAnalysis.tsx +++ /dev/null @@ -1,14 +0,0 @@ -import React from 'react'; - -import { trpc } from '~/utils/trpc'; - -function GetAnalysis() { - const analysis = trpc.useQuery([ - 'offers.analysis.get', - { profileId: 'cl9lwe9m902k5utskjs52wc0j' }, - ]); - - return
{JSON.stringify(analysis.data)}
; -} - -export default GetAnalysis; diff --git a/apps/portal/src/pages/offers/test/listOffers.tsx b/apps/portal/src/pages/offers/test/listOffers.tsx deleted file mode 100644 index a06f0957..00000000 --- a/apps/portal/src/pages/offers/test/listOffers.tsx +++ /dev/null @@ -1,53 +0,0 @@ -import React from 'react'; - -import { trpc } from '~/utils/trpc'; - -function Test() { - const data = trpc.useQuery([ - 'offers.list', - { - currency: 'SGD', - limit: 100, - location: 'Singapore, Singapore', - offset: 0, - sortBy: '-totalCompensation', - yoeCategory: 1, - }, - ]); - - const deleteMutation = trpc.useMutation(['offers.profile.delete']); - - const handleDelete = (id: string) => { - deleteMutation.mutate({ profileId: id, token: ' dadaadad' }); - }; - - return ( -
    -
  • - {JSON.stringify(data.data?.paging)} -
  • -
  • -
      - {data.data?.data.map((offer) => { - return ( -
    • - -
      {JSON.stringify(offer)}
      -
      -
    • - ); - })} -
    -
  • -
- ); -} - -export default Test;