File tree 2 files changed +13362
-3
lines changed
2 files changed +13362
-3
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ function App() {
26
26
} , [ ] ) ;
27
27
28
28
useEffect ( ( ) => {
29
- if ( user ) {
29
+ if ( user ) {
30
30
firebase . database ( ) . ref ( user . uid ) . on ( 'value' , ( snapshot ) => {
31
31
const value = snapshot . val ( ) ;
32
32
setList ( value || { } ) ;
@@ -38,13 +38,13 @@ function App() {
38
38
< div className = "App" >
39
39
< Router >
40
40
< Switch >
41
- < Route exact path = "/" >
41
+ < Route path = "/" >
42
42
< Login user = { user } />
43
43
</ Route >
44
44
< Route exact path = "/home" >
45
45
< Home list = { list } user = { user } />
46
46
</ Route >
47
- < Route exact path = '/edit/:key' component = { ( { match } ) => < Edit params = { match . params } user = { user } list = { list } /> } />
47
+ < Route exact path = '/edit/:key' component = { ( { match } ) => < Edit params = { match . params } user = { user } list = { list } /> } />
48
48
</ Switch >
49
49
</ Router >
50
50
</ div >
You can’t perform that action at this time.
0 commit comments