Skip to content

Commit

Permalink
Updated hacker export by removing/commenting out fields that don't ex…
Browse files Browse the repository at this point in the history
…ist anymore, and adding new fields to match current account/application form.
  • Loading branch information
allennatang authored and tektaxi committed Dec 7, 2024
1 parent b5752f5 commit b57db94
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
28 changes: 16 additions & 12 deletions src/features/Search/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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',
Expand All @@ -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',
Expand All @@ -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',
Expand All @@ -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) => {
Expand Down

0 comments on commit b57db94

Please sign in to comment.