From 3bfed69f035719c2330b76b5dca98d1369482b8a Mon Sep 17 00:00:00 2001 From: allennatang Date: Wed, 27 Nov 2024 00:00:26 -0500 Subject: [PATCH] Updated hacker export by removing/commenting out fields that don't exist anymore, and adding new fields to match current account/application form. --- .yarnrc.yml | 1 + src/features/Search/Search.tsx | 28 ++++++++++++++++------------ 2 files changed, 17 insertions(+), 12 deletions(-) create mode 100644 .yarnrc.yml diff --git a/.yarnrc.yml b/.yarnrc.yml new file mode 100644 index 00000000..3186f3f0 --- /dev/null +++ b/.yarnrc.yml @@ -0,0 +1 @@ +nodeLinker: node-modules diff --git a/src/features/Search/Search.tsx b/src/features/Search/Search.tsx index 138e475c..0e0b1aa4 100644 --- a/src/features/Search/Search.tsx +++ b/src/features/Search/Search.tsx @@ -204,12 +204,10 @@ class SearchContainer extends React.Component<{}, ISearchState> { this.state.account && this.state.account.accountType === UserType.STAFF ) { + headers.push({ label: CONSTANTS.AGE_LABEL, key: 'accountId.age' }); + headers.push({ label: CONSTANTS.PHONE_NUMBER_LABEL, key: 'accountId.age' }); headers.push({ label: 'Resume', key: 'application.general.URL.resume' }); headers.push({ label: 'Github', key: 'application.general.URL.github' }); - headers.push({ - label: CONSTANTS.DRIBBBLE_LINK_LABEL, - key: 'application.general.URL.dribbble', - }); headers.push({ label: CONSTANTS.PERSONAL_LABEL, key: 'application.general.URL.personal', @@ -222,6 +220,10 @@ class SearchContainer extends React.Component<{}, ISearchState> { label: CONSTANTS.OTHER_LINK_LABEL, key: 'application.general.URL.other', }); + headers.push({ + label: 'Number of previous hackathons', + key: 'application.shortAnswer.previousHackathons' + }) headers.push({ label: CONSTANTS.SKILLS_LABEL, key: 'application.shortAnswer.skills', @@ -242,10 +244,10 @@ class SearchContainer extends React.Component<{}, ISearchState> { label: CONSTANTS.SHIRT_SIZE_LABEL, key: 'application.accommodation.shirtSize', }); - headers.push({ - label: CONSTANTS.ATTENDENCE_OPTION_PREFERENCE_LABEL, - key: 'application.accommodation.attendancePreference', - }); + // headers.push({ + // label: CONSTANTS.ATTENDENCE_OPTION_PREFERENCE_LABEL, + // key: 'application.accommodation.attendancePreference', + // }); headers.push({ label: CONSTANTS.IMPAIRMENTS_LABEL, key: 'application.accommodation.impairments', @@ -254,10 +256,10 @@ class SearchContainer extends React.Component<{}, ISearchState> { label: CONSTANTS.BARRIERS_LABEL, key: 'application.accommodation.barriers', }); - headers.push({ - label: CONSTANTS.TRAVEL_LABEL, - key: 'application.accommodation.travel', - }); + // headers.push({ + // label: CONSTANTS.TRAVEL_LABEL, + // key: 'application.accommodation.travel', + // }); headers.push({ label: CONSTANTS.ETHNICITY_LABEL, key: 'application.other.ethnicity', @@ -271,6 +273,8 @@ class SearchContainer extends React.Component<{}, ISearchState> { label: CONSTANTS.PRONOUN_LABEL, key: 'accountId.pronoun', }); + headers.push({label: CONSTANTS.DIETARY_RESTRICTIONS_LABEL, key: 'accountId.dietaryRestrictions'}); + headers.push({label: 'Authorize MLH to send emails', key: 'application.other.sendEmail'}) } const tempHeaders: string[] = []; headers.forEach((header) => {