@@ -3,7 +3,7 @@ import { Box, Button, Modal, Typography } from '@mui/material';
33import { useState } from 'react' ;
44
55const 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
1717export 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