Skip to content

Commit

Permalink
remove covid
Browse files Browse the repository at this point in the history
  • Loading branch information
martincai8 committed Dec 30, 2024
1 parent 20008db commit b8d91b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 44 deletions.
35 changes: 2 additions & 33 deletions src/components/ApplicationDashboard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -387,8 +387,6 @@ const Dashboard = ({
setRSVP,
safewalkNote,
setSafewalkInput,
covidWaiverCheck,
setCovidWaiverCheck,
releaseLiabilityCheck,
setReleaseLiabilityCheck,
mediaConsentCheck,
Expand Down Expand Up @@ -417,7 +415,6 @@ const Dashboard = ({
}) => {
const { activeHackathon } = useHackathon()
// const [safewalk, setSafewalkCheckbox] = useState(safewalkNote || false)
const [covidWaiver, setCovidWaiver] = useState(covidWaiverCheck || undefined)
const [releaseLiability, setReleaseLiability] = useState(releaseLiabilityCheck || undefined)
const [mediaConsent, setMediaConsent] = useState(mediaConsentCheck || undefined)
const [sponsorEmailConsent, setSponsorEmailConsent] = useState(sponsorEmailConsentCheck || false)
Expand All @@ -439,11 +436,6 @@ const Dashboard = ({
setSafewalkSelect(!safewalk)
}

const handleCovidWaiverChange = () => {
setCovidWaiver(!covidWaiver)
setCovidWaiverCheck(!covidWaiverCheck)
}

const handleReleaseLiabilityChange = () => {
setReleaseLiability(!releaseLiability)
setReleaseLiabilityCheck(!releaseLiabilityCheck)
Expand Down Expand Up @@ -480,7 +472,7 @@ const Dashboard = ({
}

const handleRSVPClick = () => {
if (isRsvpOpen && willBeAttending && covidWaiver && releaseLiability) {
if (isRsvpOpen && willBeAttending && releaseLiability) {
setRSVP(canRSVP)
}
if (!isRsvpOpen) {
Expand Down Expand Up @@ -568,29 +560,6 @@ const Dashboard = ({
/>
</QuestionContainer>

<QuestionContainer>
<QuestionLabel>
COVID Liability <Required />
</QuestionLabel>
<P>This waiver clarifies that nwPlus is not liable for any COVID-19 related risks.</P>
<WaiverLinkContainer>
<A
bolded
width="130px"
target="_blank"
rel="noopener noreferrer"
href={waiversAndForms.covid}
>
Read Full Waiver.
</A>{' '}
</WaiverLinkContainer>
<Checkbox
checked={covidWaiver}
onChange={handleCovidWaiverChange}
label="I have read the COVID Liability Waiver and agree to its terms."
/>
</QuestionContainer>

<QuestionContainer>
<QuestionLabel>Media Consent</QuestionLabel>
<P>
Expand Down Expand Up @@ -712,7 +681,7 @@ const Dashboard = ({
onClick={handleRSVPClick}
shouldDisplay={canRSVP || hackerStatus === 'acceptedAndAttending'}
color={canRSVP ? 'primary' : 'secondary'}
disabled={!(isRsvpOpen && willBeAttending && covidWaiver && releaseLiability)}
disabled={!(isRsvpOpen && willBeAttending && releaseLiability)}
>
RSVP
</RSVPButton>
Expand Down
11 changes: 0 additions & 11 deletions src/containers/Application/Dashboard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,6 @@ const ApplicationDashboardContainer = () => {
// forceSave()
// }

const setCovidWaiverCheck = covidWaiverCheck => {
updateApplication({
basicInfo: {
covidWaiverCheck,
},
})
forceSave()
}

const setReleaseLiabilityCheck = releaseLiabilityCheck => {
updateApplication({
basicInfo: {
Expand Down Expand Up @@ -218,8 +209,6 @@ const ApplicationDashboardContainer = () => {
canRSVP={canRSVP}
// safewalkNote={application.basicInfo.safewalkNote || false}
// setSafewalkInput={safewalkNote => setSafewalkInput(safewalkNote)}
covidWaiverCheck={application.basicInfo.covidWaiverCheck || undefined}
setCovidWaiverCheck={covidWaiverCheck => setCovidWaiverCheck(covidWaiverCheck)}
releaseLiabilityCheck={application.basicInfo.releaseLiabilityCheck || undefined}
setReleaseLiabilityCheck={releaseLiabilityCheck =>
setReleaseLiabilityCheck(releaseLiabilityCheck)
Expand Down

0 comments on commit b8d91b5

Please sign in to comment.