File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import useHeader from './hooks/useHeader';
7
7
import HeaderUserIcon from './HeaderUserIcon' ;
8
8
import useToggle from '../../lib/hooks/useToggle' ;
9
9
import HeaderUserMenu from './HeaderUserMenu' ;
10
- import { Link } from 'react-router-dom' ;
10
+ import { Link , useHistory } from 'react-router-dom' ;
11
11
import media from '../../lib/styles/media' ;
12
12
import HeaderLogo from './HeaderLogo' ;
13
13
import { themedPalette } from '../../lib/styles/themes' ;
@@ -37,8 +37,8 @@ function Header(props: MainHeaderProps) {
37
37
) ;
38
38
39
39
const onClickNotification = ( event : React . MouseEvent < HTMLAnchorElement > ) => {
40
- event . preventDefault ( ) ;
41
40
if ( ! user ) {
41
+ event . preventDefault ( ) ;
42
42
dispatch ( showAuthModal ( 'LOGIN' ) ) ;
43
43
return ;
44
44
}
You can’t perform that action at this time.
0 commit comments