浏览代码

success :godmode:

amenpunk 2 年之前
父节点
当前提交
a384b13f4d
共有 2 个文件被更改,包括 35 次插入0 次删除
  1. 5 0
      src/Pages/Prueba.jsx
  2. 30 0
      src/Pages/Pruebas/Completed.jsx

+ 5 - 0
src/Pages/Prueba.jsx

9
 import { useSelector, useDispatch } from 'react-redux';
9
 import { useSelector, useDispatch } from 'react-redux';
10
 import { setRole } from '../Slices/userSlice'
10
 import { setRole } from '../Slices/userSlice'
11
 import { Loading } from '../Components/Generics/loading';
11
 import { Loading } from '../Components/Generics/loading';
12
+import { Completed } from './Pruebas/Completed';
12
 
13
 
13
 export function Prueba() {
14
 export function Prueba() {
14
 
15
 
88
     return <Loading/>
89
     return <Loading/>
89
   }
90
   }
90
 
91
 
92
+  if(asignacion.estadoFinal === 'FINALY_TEST'){
93
+    return <Completed/>
94
+  }
95
+
91
   if (DOING_STATES.includes(asignacion.estadoFinal)) {
96
   if (DOING_STATES.includes(asignacion.estadoFinal)) {
92
     return <Cleaver />
97
     return <Cleaver />
93
   }
98
   }

+ 30 - 0
src/Pages/Pruebas/Completed.jsx

1
+import { Box, Paper, } from '@mui/material'
2
+
3
+import CheckCircleIcon from '@mui/icons-material/CheckCircle';
4
+
5
+const SUCCESS = () => {
6
+  return(
7
+    <>
8
+    <CheckCircleIcon
9
+        style={{
10
+          color :'green',
11
+          fontSize:90
12
+        }}
13
+      />
14
+    </>
15
+  )
16
+}
17
+
18
+export function Completed() {
19
+  return (
20
+    <div className="content-section">
21
+      <div className="main">
22
+        <Box >
23
+          <Paper style={{padding:50 }}>
24
+            <h1>Tus respuestas han sido enviadas <SUCCESS/></h1>
25
+          </Paper>
26
+        </Box>
27
+      </div>
28
+    </div>
29
+  )
30
+}