浏览代码

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

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

@@ -0,0 +1,30 @@
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
+}