Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add blurb under resume heading #616

Merged
merged 3 commits into from
Oct 3, 2024
Merged
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
6 changes: 6 additions & 0 deletions src/components/ApplicationQuestions/Portfolio.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import ResumeUploadBtn from '../ResumeUploadBtn'
import { TextInput } from '../Input'
import { ErrorMessage, P, QuestionHeading, ErrorSpan as Required } from '../Typography'
import styled from 'styled-components'
import { useHackathon } from '../../utility/HackathonProvider'

const QuestionForm = styled.form`
display: flex;
Expand Down Expand Up @@ -63,6 +64,8 @@ const FormRow = ({ fieldValue, required, children }) => (
)

const Portfolio = ({ refs, errors, formInputs, onChange, question, handleResume }) => {
const { activeHackathon } = useHackathon()

return (
<QuestionForm>
<FormRow fieldValue="resume" required>
Expand All @@ -77,6 +80,9 @@ const Portfolio = ({ refs, errors, formInputs, onChange, question, handleResume
/>
{errors?.resume && <ErrorMessage>{errors?.resume}</ErrorMessage>}
</FormRow>
{activeHackathon === 'hackcamp' && (
<P>Resumes are collected for the sole purpose of sharing with our sponsors</P>
)}
<P>Maximum file size of 2MB</P>
<FormRow fieldValue="GitHub/BitBucket/GitLab">
<TextInput
Expand Down
Loading