File tree Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -48,10 +48,15 @@ export default (props) => {
48
48
return (
49
49
< MenuHeader >
50
50
< MenuHeaderContainer >
51
- < AccountLink to = { profileLink } onClick = { ( ) => Store . dispatch ( toggle ( ) ) } >
52
- < AccountIcon />
53
- { profileLabel }
54
- </ AccountLink >
51
+ { config . menu ?. login !== false && (
52
+ < AccountLink
53
+ to = { profileLink }
54
+ onClick = { ( ) => Store . dispatch ( toggle ( ) ) }
55
+ >
56
+ < AccountIcon />
57
+ { profileLabel }
58
+ </ AccountLink >
59
+ ) }
55
60
< MenuCloseButton />
56
61
</ MenuHeaderContainer >
57
62
</ MenuHeader >
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import { routes } from './routes';
6
6
export const menu : ConfigMenu = {
7
7
size : 325 ,
8
8
profileLabel : 'Zum Profil' ,
9
+ login : false ,
9
10
loginLabel : 'Login' ,
10
11
logo : false ,
11
12
twitter : false ,
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ type MenuItem = Link | ExternalLink | Separator | Plus;
40
40
export type ConfigMenu = {
41
41
size : number ;
42
42
profileLabel : string ;
43
- login ?: boolean ;
43
+ login ?: false | undefined ;
44
44
loginLabel : string ;
45
45
logo ?: boolean ;
46
46
twitter ?: boolean ;
You can’t perform that action at this time.
0 commit comments