File tree 2 files changed +11
-5
lines changed
2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
2
import { Link } from 'react-router-dom' ;
3
3
4
+ import SignOutButton from '../SignOut' ;
4
5
import * as ROUTES from '../../constants/routes' ;
5
6
6
7
const Navigation = ( ) => (
@@ -21,6 +22,9 @@ const Navigation = () => (
21
22
< li >
22
23
< Link to = { ROUTES . ADMIN } > Admin</ Link >
23
24
</ li >
25
+ < li >
26
+ < SignOutButton />
27
+ </ li >
24
28
</ ul >
25
29
</ div >
26
30
) ;
Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
2
3
- const SignOut = ( ) => (
4
- < div >
5
- < h1 > SignOut</ h1 >
6
- </ div >
3
+ import { withFirebase } from '../Firebase' ;
4
+
5
+ const SignOutButton = ( { firebase } ) => (
6
+ < button type = "button" onClick = { firebase . doSignOut } >
7
+ Sign Out
8
+ </ button >
7
9
) ;
8
10
9
- export default SignOut ;
11
+ export default withFirebase ( SignOutButton ) ;
You can’t perform that action at this time.
0 commit comments