Selaa lähdekoodia

role template

amenpunk 1 vuosi sitten
vanhempi
commit
2224170b7d

+ 18 - 4
src/Components/Generics/loading.jsx

@@ -2,13 +2,15 @@ import React from "react";
2 2
 import '../../Css/loading.css'
3 3
 
4 4
 import { Box, Paper } from '@mui/material'
5
+  
6
+const types = [
7
+  "dot-pulse", "dot-elastic", "dot-flashing", "dot-collision", "dot-revolution", "dot-carousel",
8
+  "dot-fire", "dot-spin", "dot-falling", "dot-stretching"
9
+];
10
+
5 11
 
6 12
 export function Loading() {
7 13
 
8
-  const types = [
9
-    "dot-pulse", "dot-elastic", "dot-flashing", "dot-collision", "dot-revolution", "dot-carousel",
10
-    "dot-fire", "dot-spin", "dot-falling", "dot-stretching"
11
-  ];
12 14
 
13 15
   return (
14 16
     <div className="content-section">
@@ -29,3 +31,15 @@ export function Loading() {
29 31
 
30 32
   )
31 33
 }
34
+
35
+export function Simple() {
36
+  return (
37
+    <div className="snippet" data-title=".dot-pulse">
38
+      <div className="stage">
39
+        <div className={types[0]}></div>
40
+      </div>
41
+    </div>
42
+
43
+  )
44
+}
45
+

+ 11 - 0
src/Components/Modal/PasswordModal.jsx

@@ -7,6 +7,7 @@ import {
7 7
 } from '@mui/material'
8 8
 
9 9
 import { Puesto } from '../Password/Steps/puesto'
10
+import { TypePwd } from '../Password/Steps/TypePwd'
10 11
 import { Password } from '../Password/Steps/password'
11 12
 import { Candidato } from '../Password/Steps/candidato'
12 13
 import { Resume } from '../Password/Steps/resume'
@@ -72,6 +73,16 @@ export function HelpModal(props) {
72 73
 
73 74
   const steps = [
74 75
     {
76
+      label : "Tipo de contraseña",
77
+      operation : 
78
+        <TypePwd
79
+        handleNext={handleNext}
80
+        handleBack={handleBack}
81
+        password={password}
82
+        setPassword={setPassword}
83
+        />
84
+    },
85
+    {
75 86
       label: 'Puesto',
76 87
       operation:
77 88
       <Puesto

+ 5 - 3
src/Pages/Login.jsx

@@ -96,11 +96,13 @@ export function Login() {
96 96
   });
97 97
   
98 98
   React.useEffect(() => {
99
+    console.log('auth', auth)
99 100
     if(auth.token){
100
-      let body_token = jwt_decode(auth.token);
101
-      if(body_token.authorities.includes("Reclutador")){
101
+      // let body_token = jwt_decode(auth.token);
102
+      // console.log(,body_token)
103
+      // if(body_token.authorities.includes("Reclutador")){
102 104
         navigate('/dashboard/home')
103
-      }
105
+      // }
104 106
     }
105 107
   }, [auth, navigate])
106 108