@@ -24,11 +24,7 @@ export const LoginSignup = () => {
24
24
const dataUser = { name, email, password } ;
25
25
if ( isSignup ) {
26
26
await actions . signup ( dataUser , navigate ) ;
27
- < << << << HEAD
28
- setSuccessMessage ( '¡Registro exitoso! Redirigiendo...' ) ;
29
- = === ===
30
27
setSuccessMessage ( ) ;
31
- > >>> >>> de510c5056ad0347db9ac0c09e5d36d0e30453c0
32
28
setTimeout ( ( ) => {
33
29
setIsSignup ( false ) ;
34
30
} , ) ;
@@ -46,52 +42,6 @@ export const LoginSignup = () => {
46
42
} ;
47
43
48
44
return (
49
- < << << << HEAD
50
- < div className = "container d-flex justify-content-center align-items-center vh-100 bg-light" >
51
- < div className = "card shadow-lg p-4" style = { { maxWidth : "450px" , width : "100%" } } >
52
- < div className = "card-body" >
53
- { ! isSignup ? (
54
- < form onSubmit = { handleSubmit } >
55
- < h2 className = "text-center mb-3" > Iniciar sesión</ h2 >
56
- < div className = "mb-3" >
57
- < input
58
- type = "email"
59
- className = "form-control"
60
- placeholder = "Correo electrónico"
61
- value = { email }
62
- onChange = { ( e ) => setEmail ( e . target . value ) }
63
- required
64
- />
65
- </ div >
66
- < div className = "mb-3" >
67
- < input
68
- type = "password"
69
- className = "form-control"
70
- placeholder = "Contraseña"
71
- value = { password }
72
- onChange = { ( e ) => setPassword ( e . target . value ) }
73
- required
74
- />
75
- </ div >
76
- < button type = "submit" className = "btn btn-primary w-100" disabled = { loading } >
77
- { loading ? 'Cargando...' : 'Iniciar sesión' }
78
- </ button >
79
- { error && < p className = "text-danger text-center mt-2" > { error } </ p > }
80
- < p className = "text-center mt-3" >
81
- ¿No tienes cuenta? < span className = "text-primary" style = { { cursor : "pointer" } } onClick = { ( ) => setIsSignup ( true ) } > Regístrate</ span >
82
- </ p >
83
- < p className = "text-center mt-1" >
84
- < Link to = "/RecuperacionContraseña" className = "text-primary" > ¿Olvidaste tu contraseña?</ Link >
85
- </ p >
86
- </ form >
87
- ) : (
88
- < form onSubmit = { handleSubmit } >
89
- < h2 className = "text-center mb-3" > Regístrate</ h2 >
90
- < div className = "mb-3" >
91
- < input
92
- type = "text"
93
- className = "form-control"
94
- = === ===
95
45
< div
96
46
className = "d-flex justify-content-center align-items-center min-vh-100"
97
47
style = { {
@@ -127,46 +77,10 @@ export const LoginSignup = () => {
127
77
border : "2px solid #ddd" ,
128
78
transition : "border-color 0.3s ease-in-out" ,
129
79
} }
130
- > >>> >>> de510c5056ad0347db9ac0c09e5d36d0e30453c0
131
80
placeholder = "Nombre"
132
81
value = { name }
133
82
onChange = { ( e ) => setName ( e . target . value ) }
134
83
required
135
- < << << << HEAD
136
- />
137
- </ div >
138
- < div className = "mb-3" >
139
- < input
140
- type = "email"
141
- className = "form-control"
142
- placeholder = "Correo electrónico"
143
- value = { email }
144
- onChange = { ( e ) => setEmail ( e . target . value ) }
145
- required
146
- />
147
- </ div >
148
- < div className = "mb-3" >
149
- < input
150
- type = "password"
151
- className = "form-control"
152
- placeholder = "Contraseña"
153
- value = { password }
154
- onChange = { ( e ) => setPassword ( e . target . value ) }
155
- required
156
- />
157
- </ div >
158
- < button type = "submit" className = "btn btn-primary w-100" disabled = { loading } >
159
- { loading ? 'Cargando...' : 'Registrar' }
160
- </ button >
161
- { error && < p className = "text-danger text-center mt-2" > { error } </ p > }
162
- { successMessage && < p className = "text-success text-center mt-2" > { successMessage } </ p > }
163
- < p className = "text-center mt-3" >
164
- ¿Ya tienes cuenta? < span className = "text-primary" style = { { cursor : "pointer" } } onClick = { ( ) => setIsSignup ( false ) } > Inicia sesión</ span >
165
- </ p >
166
- </ form >
167
- ) }
168
- < Link to = "/" className = "text-center d-block mt-3 text-secondary" > Volver a la página principal</ Link >
169
- =======
170
84
onFocus = { ( e ) => e . target . style . borderColor = "#007bff" }
171
85
onBlur = { ( e ) => e . target . style . borderColor = "#ddd" }
172
86
/>
@@ -249,7 +163,6 @@ export const LoginSignup = () => {
249
163
< Link to = "/" className = "d-block mt-3 text-secondary" style = { { fontSize : "1rem" , textDecoration : "none" } } >
250
164
< i className = "bi bi-arrow-left" > </ i > Volver a la página principal
251
165
</ Link >
252
- >>> >>> > de510c5056ad0347db9ac0c09e5d36d0e30453c0
253
166
</ div >
254
167
</ div >
255
168
</ div >
0 commit comments