Parcourir la source

success :godmode:

amenpunk il y a 3 ans
Parent
commit
a384b13f4d
2 fichiers modifiés avec 35 ajouts et 0 suppressions
  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';
 import { useSelector, useDispatch } from 'react-redux';
 import { setRole } from '../Slices/userSlice'
 import { Loading } from '../Components/Generics/loading';
+import { Completed } from './Pruebas/Completed';
 
 export function Prueba() {
 
@@ -88,6 +89,10 @@ export function Prueba() {
     return <Loading/>
   }
 
+  if(asignacion.estadoFinal === 'FINALY_TEST'){
+    return <Completed/>
+  }
+
   if (DOING_STATES.includes(asignacion.estadoFinal)) {
     return <Cleaver />
   }

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

@@ -0,0 +1,30 @@
+import { Box, Paper, } from '@mui/material'
+
+import CheckCircleIcon from '@mui/icons-material/CheckCircle';
+
+const SUCCESS = () => {
+  return(
+    <>
+    <CheckCircleIcon
+        style={{
+          color :'green',
+          fontSize:90
+        }}
+      />
+    </>
+  )
+}
+
+export function Completed() {
+  return (
+    <div className="content-section">
+      <div className="main">
+        <Box >
+          <Paper style={{padding:50 }}>
+            <h1>Tus respuestas han sido enviadas <SUCCESS/></h1>
+          </Paper>
+        </Box>
+      </div>
+    </div>
+  )
+}