File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 1
-
2
1
import React , { useEffect , useState } from "react" ;
3
2
import {
4
3
IonButtons ,
@@ -12,18 +11,22 @@ import {
12
11
IonLabel ,
13
12
IonInput ,
14
13
IonAlert ,
14
+ IonCheckbox ,
15
15
} from "@ionic/react" ;
16
16
17
17
import { useForm , Controller } from "react-hook-form" ;
18
18
import { ErrorMessage } from "@hookform/error-message" ;
19
19
20
-
21
20
import { useAuth } from "reactfire" ;
22
21
22
+ export interface CheckboxChangeEventDetail {
23
+ value : any ;
24
+ checked : boolean ;
25
+ }
26
+
23
27
const Login : React . FunctionComponent = ( ) => {
24
28
const [ showErrorAlert , setShowErrorAlert ] = useState ( "" ) ;
25
29
26
-
27
30
// SEE - https://github.com/FirebaseExtended/reactfire/issues/228
28
31
useEffect ( ( ) => {
29
32
let map = ( globalThis as any ) [ "_reactFirePreloadedObservables" ] ;
@@ -41,6 +44,7 @@ const Login: React.FunctionComponent = () => {
41
44
* get data from form and sign the user in
42
45
*/
43
46
const signIn = async ( data : any ) => {
47
+ console . log ( data ) ;
44
48
try {
45
49
let r = await auth . signInWithEmailAndPassword ( data . email , data . password ) ;
46
50
console . log ( r ) ;
@@ -68,6 +72,8 @@ const Login: React.FunctionComponent = () => {
68
72
) ;
69
73
} ;
70
74
75
+ console . log ( errors ) ;
76
+
71
77
return (
72
78
< IonPage >
73
79
< IonHeader >
You can’t perform that action at this time.
0 commit comments