Skip to content

Commit 959d835

Browse files
authored
Merge pull request #16 from Bibimbap-Team/hotfix/linting-errors
Fix linting errors
2 parents a1431bb + 08adb65 commit 959d835

File tree

3 files changed

+13
-26
lines changed

3 files changed

+13
-26
lines changed

src/app/register/SubmitBox.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@
22
import { FormEvent } from 'react';
33
import { Box } from '@mui/material';
44

5-
export default function RegisterSubmitBox({
6-
children,
7-
}: {
8-
children: React.ReactNode;
9-
}) {
5+
export default function RegisterSubmitBox({ children }: { children: React.ReactNode }) {
106
const handleSubmit = (event: FormEvent<HTMLFormElement>) => {
117
event.preventDefault();
128
const data = new FormData(event.currentTarget);

src/app/register/page.tsx

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ import {
99
FormControlLabel,
1010
} from '@mui/material';
1111
import { LockOutlined } from '@mui/icons-material';
12+
13+
import RegisterSubmitBox from './SubmitBox';
14+
1215
import Copyright from '@/components/Copyright';
1316
import CustomLink from '@/components/CustomLink';
14-
import RegisterSubmitBox from './SubmitBox';
1517
import TACModal from '@/components/TACModal';
1618

1719
export default function SignUp() {
@@ -100,12 +102,7 @@ export default function SignUp() {
100102
control={<Checkbox value='allowExtraEmails' color='primary' />}
101103
label='I want to receive inspiration, marketing promotions and updates via email.'
102104
/> */}
103-
<Button
104-
type='submit'
105-
fullWidth
106-
variant='contained'
107-
sx={{ mt: 3, mb: 2 }}
108-
>
105+
<Button type='submit' fullWidth variant='contained' sx={{ mt: 3, mb: 2 }}>
109106
Register
110107
</Button>
111108
<Grid container justifyContent='flex-end'>

src/components/TACModal.tsx

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Box, Button, Modal, Typography } from '@mui/material';
33
import { useState } from 'react';
44

55
const style = {
6-
position: 'absolute' as 'absolute',
6+
position: 'absolute',
77
top: '50%',
88
left: '50%',
99
transform: 'translate(-50%, -50%)',
@@ -12,7 +12,7 @@ const style = {
1212
border: '2px solid #000',
1313
boxShadow: 24,
1414
p: 4,
15-
};
15+
} as const;
1616

1717
export default function TACModal() {
1818
const [open, setOpen] = useState(false);
@@ -29,20 +29,15 @@ export default function TACModal() {
2929
aria-describedby='modal-modal-description'
3030
>
3131
<Box sx={style}>
32-
<Typography
33-
id='modal-modal-title'
34-
variant='h6'
35-
component='h2'
36-
align='center'
37-
>
32+
<Typography id='modal-modal-title' variant='h6' component='h2' align='center'>
3833
Terms and Conditions
3934
</Typography>
4035
<Typography id='modal-modal-description' sx={{ mt: 2 }}>
4136
<ol className='list-decimal'>
4237
<li>You can use Polygon to develop problems only.</li>
4338
<li>
44-
You should use your real name and all information about you
45-
should be correct and accurate.
39+
You should use your real name and all information about you should be
40+
correct and accurate.
4641
</li>
4742
<li>
4843
You should not submit files containing malicious code:
@@ -58,16 +53,15 @@ export default function TACModal() {
5853
<ul className='list-disc list-inside'>
5954
<li>access the network;</li>
6055
<li>
61-
work with any files except those explicitly specified in the
62-
problem statement;
56+
work with any files except those explicitly specified in the problem
57+
statement;
6358
</li>
6459
<li>attack system security;</li>
6560
<li>execute other programs and create new processes;</li>
6661
<li>change file system permissions;</li>
6762
<li>work with subdirectories;</li>
6863
<li>
69-
create or manipulate any GUI items (windows, dialog boxes,
70-
etc);
64+
create or manipulate any GUI items (windows, dialog boxes, etc);
7165
</li>
7266
<li>work with external devices (sound, printer, etc);</li>
7367
<li>work with OS registry;</li>

0 commit comments

Comments
 (0)