1- import React from " react" ;
2- import Avatar from " @mui/material/Avatar" ;
3- import Box from " @mui/material/Box" ;
4- import Button from " @mui/material/Button" ;
5- import Container from " @mui/material/Container" ;
6- import Paper from " @mui/material/Paper" ;
7- import Stack from " @mui/material/Stack" ;
8- import Typography from " @mui/material/Typography" ;
9- import { Warning as WarningIcon } from " @phosphor-icons/react/dist/ssr/Warning" ;
1+ import * as React from ' react' ;
2+ import Avatar from ' @mui/material/Avatar' ;
3+ import Box from ' @mui/material/Box' ;
4+ import Button from ' @mui/material/Button' ;
5+ import Container from ' @mui/material/Container' ;
6+ import Paper from ' @mui/material/Paper' ;
7+ import Stack from ' @mui/material/Stack' ;
8+ import Typography from ' @mui/material/Typography' ;
9+ import { Warning as WarningIcon } from ' @phosphor-icons/react/dist/ssr/Warning' ;
1010
11- export function Modal8 ( { setModal , deactivateRegistrationBtn } ) {
11+ export function Modal8 ( ) {
1212 return (
13- < Box
14- sx = { {
15- position : "fixed" ,
16- top : "50%" ,
17- left : "50%" ,
18- transform : "translate(-50%, -50%)" ,
19- zIndex : 9999 ,
20- } }
21- >
13+ < Box sx = { { bgcolor : 'var(--mui-palette-background-level1)' , p : 3 } } >
2214 < Container maxWidth = "sm" >
23- < Paper
24- sx = { {
25- border : "1px solid var(--mui-palette-divider)" ,
26- } }
27- >
28- < Stack direction = "row" spacing = { 2 } sx = { { display : "flex" , p : 3 } } >
29- < Avatar
30- sx = { {
31- bgcolor : "var(--mui-palette-error-50)" ,
32- color : "var(--mui-palette-error-main)" ,
33- } }
34- >
15+ < Paper sx = { { border : '1px solid var(--mui-palette-divider)' , boxShadow : 'var(--mui-shadows-16)' } } >
16+ < Stack direction = "row" spacing = { 2 } sx = { { display : 'flex' , p : 3 } } >
17+ < Avatar sx = { { bgcolor : 'var(--mui-palette-error-50)' , color : 'var(--mui-palette-error-main)' } } >
3518 < WarningIcon fontSize = "var(--Icon-fontSize)" />
3619 </ Avatar >
3720 < Stack spacing = { 3 } >
3821 < Stack spacing = { 1 } >
39- < Typography variant = "h5" > Deactivate Submissions? </ Typography >
22+ < Typography variant = "h5" > Deactivate account </ Typography >
4023 < Typography color = "text.secondary" variant = "body2" >
41- Are you sure you want to deactivate all submissions? This
24+ Are you sure you want to deactivate your account? All of your data will be permanently removed. This
4225 action cannot be undone.
4326 </ Typography >
4427 </ Stack >
45- < Stack
46- direction = "row"
47- spacing = { 2 }
48- sx = { { justifyContent : "flex-end" } }
49- >
50- < Button color = "secondary" onClick = { ( ) => setModal ( false ) } >
51- Cancel
52- </ Button >
53- < Button
54- color = "error"
55- variant = "contained"
56- onClick = { ( ) => {
57- deactivateRegistrationBtn ( ) ;
58- setModal ( false ) ;
59- } }
60- >
28+ < Stack direction = "row" spacing = { 2 } sx = { { justifyContent : 'flex-end' } } >
29+ < Button color = "secondary" > Cancel</ Button >
30+ < Button color = "error" variant = "contained" >
6131 Deactivate
6232 </ Button >
6333 </ Stack >
@@ -67,4 +37,4 @@ export function Modal8({ setModal, deactivateRegistrationBtn }) {
6737 </ Container >
6838 </ Box >
6939 ) ;
70- }
40+ }
0 commit comments