Skip to content

Commit c54c00a

Browse files
added yarn and fixed homepage
1 parent 939bda3 commit c54c00a

File tree

2 files changed

+13362
-3
lines changed

2 files changed

+13362
-3
lines changed

src/App.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function App() {
2626
}, []);
2727

2828
useEffect(() => {
29-
if(user) {
29+
if (user) {
3030
firebase.database().ref(user.uid).on('value', (snapshot) => {
3131
const value = snapshot.val();
3232
setList(value || {});
@@ -38,13 +38,13 @@ function App() {
3838
<div className="App">
3939
<Router>
4040
<Switch>
41-
<Route exact path="/">
41+
<Route path="/">
4242
<Login user={user} />
4343
</Route>
4444
<Route exact path="/home">
4545
<Home list={list} user={user} />
4646
</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} />} />
4848
</Switch>
4949
</Router>
5050
</div>

0 commit comments

Comments
 (0)