From 08adb65a40ee2102e3d4b4169aa32590982bbd31 Mon Sep 17 00:00:00 2001 From: Dongyeon Park <26868715+plzfday@users.noreply.github.com> Date: Wed, 31 Jul 2024 16:38:51 +0900 Subject: [PATCH] =?UTF-8?q?=E2=9C=94=EF=B8=8F=20hotfix:=20Resolve=20lintin?= =?UTF-8?q?g=20errors?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/register/SubmitBox.tsx | 6 +----- src/app/register/page.tsx | 11 ++++------- src/components/TACModal.tsx | 22 ++++++++-------------- 3 files changed, 13 insertions(+), 26 deletions(-) diff --git a/src/app/register/SubmitBox.tsx b/src/app/register/SubmitBox.tsx index ae90aeb..cebf5a1 100644 --- a/src/app/register/SubmitBox.tsx +++ b/src/app/register/SubmitBox.tsx @@ -2,11 +2,7 @@ import { FormEvent } from 'react'; import { Box } from '@mui/material'; -export default function RegisterSubmitBox({ - children, -}: { - children: React.ReactNode; -}) { +export default function RegisterSubmitBox({ children }: { children: React.ReactNode }) { const handleSubmit = (event: FormEvent) => { event.preventDefault(); const data = new FormData(event.currentTarget); diff --git a/src/app/register/page.tsx b/src/app/register/page.tsx index 5f83c7f..809c64e 100644 --- a/src/app/register/page.tsx +++ b/src/app/register/page.tsx @@ -9,9 +9,11 @@ import { FormControlLabel, } from '@mui/material'; import { LockOutlined } from '@mui/icons-material'; + +import RegisterSubmitBox from './SubmitBox'; + import Copyright from '@/components/Copyright'; import CustomLink from '@/components/CustomLink'; -import RegisterSubmitBox from './SubmitBox'; import TACModal from '@/components/TACModal'; export default function SignUp() { @@ -100,12 +102,7 @@ export default function SignUp() { control={} label='I want to receive inspiration, marketing promotions and updates via email.' /> */} - diff --git a/src/components/TACModal.tsx b/src/components/TACModal.tsx index a43fb54..d41d094 100644 --- a/src/components/TACModal.tsx +++ b/src/components/TACModal.tsx @@ -3,7 +3,7 @@ import { Box, Button, Modal, Typography } from '@mui/material'; import { useState } from 'react'; const style = { - position: 'absolute' as 'absolute', + position: 'absolute', top: '50%', left: '50%', transform: 'translate(-50%, -50%)', @@ -12,7 +12,7 @@ const style = { border: '2px solid #000', boxShadow: 24, p: 4, -}; +} as const; export default function TACModal() { const [open, setOpen] = useState(false); @@ -29,20 +29,15 @@ export default function TACModal() { aria-describedby='modal-modal-description' > - + Terms and Conditions
  1. You can use Polygon to develop problems only.
  2. - You should use your real name and all information about you - should be correct and accurate. + You should use your real name and all information about you should be + correct and accurate.
  3. You should not submit files containing malicious code: @@ -58,16 +53,15 @@ export default function TACModal() {
    • access the network;
    • - work with any files except those explicitly specified in the - problem statement; + work with any files except those explicitly specified in the problem + statement;
    • attack system security;
    • execute other programs and create new processes;
    • change file system permissions;
    • work with subdirectories;
    • - create or manipulate any GUI items (windows, dialog boxes, - etc); + create or manipulate any GUI items (windows, dialog boxes, etc);
    • work with external devices (sound, printer, etc);
    • work with OS registry;