File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
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
import { withRouter } from 'react-router' ;
4
- import { getToken , removeToken } from '../utils' ;
4
+ import { getToken , deleteToken } from '../utils' ;
5
5
6
6
const Header = ( { history } ) => {
7
7
const authToken = getToken ( ) ;
@@ -34,7 +34,7 @@ const Header = ({ history }) => {
34
34
< div
35
35
className = "ml1 pointer black"
36
36
onClick = { ( ) => {
37
- removeToken ( ) ;
37
+ deleteToken ( ) ;
38
38
history . push ( '/' ) ;
39
39
} }
40
40
>
Original file line number Diff line number Diff line change @@ -36,4 +36,4 @@ export function timeDifferenceForDate(date) {
36
36
37
37
export const getToken = ( ) => window . localStorage . getItem ( AUTH_TOKEN ) ;
38
38
export const setToken = ( token ) => window . localStorage . setItem ( AUTH_TOKEN , token ) ;
39
- export const removeToen = ( ) => window . localStorage . removeItem ( AUTH_TOKEN ) ;
39
+ export const deleteToken = ( ) => window . localStorage . removeItem ( AUTH_TOKEN ) ;
You can’t perform that action at this time.
0 commit comments