Skip to content

Commit

Permalink
changed format for links
Browse files Browse the repository at this point in the history
  • Loading branch information
Kayla Hamakawa authored and Kayla Hamakawa committed Feb 26, 2024
1 parent 23afd2b commit 8e20119
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 5 additions & 3 deletions src/components/MenuBar/ButtonBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { Link as MUILink } from '@material-ui/core';

import { applicationOpen, applyDeadline, hothStart, hothEnd } from '../constants.js';


const useStyles = makeStyles(theme => {
const menuBarAdaptiveThreshold = theme.breakpoints.values.sm * 1.3;
return {
Expand Down Expand Up @@ -81,21 +82,22 @@ function ButtonBar({ isMobile }) {
{link.name}
</PoppinLink>)}

{Date.now() < hothStart.getTime() ?
{Date.now() < hothStart.getTime() ? (

Check failure on line 85 in src/components/MenuBar/ButtonBar.js

View workflow job for this annotation

GitHub Actions / eslint

Expected newline between test and consequent of ternary expression

Check failure on line 85 in src/components/MenuBar/ButtonBar.js

View workflow job for this annotation

GitHub Actions / eslint

Unnecessary parentheses around expression

Check failure on line 85 in src/components/MenuBar/ButtonBar.js

View workflow job for this annotation

GitHub Actions / eslint

Expected newline between consequent and alternate of ternary expression
<BorderLink
disabled={Date.now() < applicationOpen.getTime() || Date.now() > applyDeadline.getTime()}
href={'https://forms.gle/VMhdCzMov8RvGUfP8'}
target='_blank'
>
Apply
</BorderLink> :
</BorderLink>

Check failure on line 92 in src/components/MenuBar/ButtonBar.js

View workflow job for this annotation

GitHub Actions / eslint

Trailing spaces not allowed
):(

Check failure on line 93 in src/components/MenuBar/ButtonBar.js

View workflow job for this annotation

GitHub Actions / eslint

Operator ':' must be spaced

Check failure on line 93 in src/components/MenuBar/ButtonBar.js

View workflow job for this annotation

GitHub Actions / eslint

Unnecessary parentheses around expression
<BorderLink
disabled={Date.now() < hothStart.getTime() || Date.now() > hothEnd.getTime()}
href='/submissions'
>
Submit
</BorderLink>
}
)}
</>
);
}
Expand Down
6 changes: 3 additions & 3 deletions src/components/SubmissionsPage/Submissions.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ const SubmissionsPage = () => {
</Typography>

<Typography className={classes.info}>
1{')'} Submit the project on the HOTH XI devpost: {' '}
<Link to='https://hoth-xi.devpost.com/?ref_feature=challenge&ref_medium=discover'>devvvvpostttt</Link>
1{')'} Submit the project on the HOTH XI {' '}
<Link to='https://hoth-xi.devpost.com/?ref_feature=challenge&ref_medium=discover'>devpost</Link>
</Typography>

<Typography className={classes.info}>
2{')'} Fill out the HOTH XI submission Google Form: {' '}
2{')'} Fill out the {' '}
<Link to='https://forms.gle/VPBHtLTyPo1pn7pn9'>HOTH XI Submission Form</Link>
</Typography>
</Container>;
Expand Down

0 comments on commit 8e20119

Please sign in to comment.