Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# [McHacks Dashboard](https://app.mchacks.ca)

[![Netlify Status](https://api.netlify.com/api/v1/badges/909350ee-5bb5-47c4-88e3-81c1de52db92/deploy-status)](https://app.netlify.com/sites/mchacks-dashboard/deploys)

This repository contains the code for the hackathon dashboard of [McHacks](https://mchacks.ca), Canada's favourite hackathon hosted annually at McGill University. It connects with our [API](https://github.com/hackmcgill/hackerAPI) and is hosted at [app.mchacks.ca](https://app.mchacks.ca).

## Folder Structure
Expand Down
2 changes: 1 addition & 1 deletion src/config/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export const TRAVEL_REQUEST_REASON_LABEL = 'Reason';
export const PREVIOUS_HACKATHONS_LABEL =
'How many hackathons have you been to?';
export const REVIEW_APPLICIATION_DESCRIPTION =
'Your are about to submit. Please review your application before submitting. You won’t be able to edit your responses later.';
'You are about to submit. Please review your application before submitting. You won’t be able to edit your responses later.';

// Invite Page
export const ACCOUNT_TYPE_LABEL = 'Account type';
Expand Down
15 changes: 11 additions & 4 deletions src/config/degrees.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
export enum Degrees {
HIGHSCHOOL = 'High School',
CEGEP = 'CEGEP',
UNDERGRADUATE = 'Undergraduate',
GRADUATE = 'Graduate',
LESS_THAN_SECONDARY = 'Less than Secondary / High School',
SECONDARY = 'Secondary / High School',
COLLEGE = 'Undergraduate University (2 year - community college or similar)',
UNDERGRADUATE = 'Undergraduate University (3+ year)',
GRADUATE = 'Graduate University (Masters, Professional, Doctoral, etc)',
CODE_SCHOOL = 'Code School / Bootcamp',
VOCATIONAL = 'Other Vocational / Trade Program or Apprenticeship',
POSTDOC = 'Post Doctorate',
OTHER = 'Other',
NOT_STUDENT = "I'm not currently a student",
NO_ANSWER = 'Prefer not to answer'
}
export default Degrees;
26 changes: 14 additions & 12 deletions src/features/Account/ManageAccountForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,7 @@ const ManageAccountForm: React.FC<IManageAccountProps> = (props) => {
id: accountId,
lastName: values.lastName,
password: values.password,
phoneNumber:
props.mode === ManageAccountModes.EDIT ? values.phoneNumber : 11111111111,
phoneNumber: values.phoneNumber,
pronoun: values.pronoun,
gender: values.gender,
dietaryRestrictions: settings.isRemote
Expand Down Expand Up @@ -281,18 +280,21 @@ const ManageAccountForm: React.FC<IManageAccountProps> = (props) => {
name={'newPassword'}
/>
<ErrorMessage component={FormikElements.Error} name="newPassword" />
<FastField
component={FormikElements.FormattedNumber}
label={CONSTANTS.PHONE_NUMBER_LABEL}
placeholder="+# (###) ###-####"
format="+# (###) ###-####"
name={'phoneNumber'}
required={true}
value={fp.values.phoneNumber}
/>
<ErrorMessage component={FormikElements.Error} name="phoneNumber" />
</>
)}

<FastField
component={FormikElements.FormattedNumber}
label={CONSTANTS.PHONE_NUMBER_LABEL}
placeholder="+# (###) ###-####"
format="+# (###) ###-####"
name={'phoneNumber'}
required={true}
value={fp.values.phoneNumber}
/>
<ErrorMessage component={FormikElements.Error} name="phoneNumber" />


<FastField
component={FormikElements.Select}
creatable={true}
Expand Down
12 changes: 0 additions & 12 deletions src/features/Application/ManageApplicationForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1179,18 +1179,6 @@ const ManageApplicationForm: React.FunctionComponent<
</GridTwoColumn>
</>
) : null}

<div className="eventPrompt">
Make sure to mark yourself as going to our{' '}
<a
href={CONSTANTS.FACEBOOK_EVENT_URL}
target="_blank"
rel="noopener noreferrer"
>
Facebook event
</a>
!
</div>
</div>

<div className="buttons">
Expand Down