File tree 2 files changed +13
-11
lines changed
2 files changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -49,9 +49,7 @@ const rotate2 = keyframes`
49
49
` ;
50
50
51
51
export function App ( ) {
52
- const { initStatus } = useKeycloak ( ) ;
53
-
54
- const isLoading = initStatus === 'loading' ;
52
+ const { isLoading } = useKeycloak ( ) ;
55
53
56
54
return (
57
55
< >
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ function NavItem(props: ButtonProps & SmartLinkProps) {
34
34
}
35
35
36
36
function MainNavigation ( ) {
37
- const { keycloak } = useKeycloak ( ) ;
37
+ const { keycloak, isEnabled } = useKeycloak ( ) ;
38
38
39
39
return (
40
40
< Flex as = 'nav' aria-label = 'Main' gap = { 4 } alignItems = 'center' >
@@ -48,13 +48,17 @@ function MainNavigation() {
48
48
</ NavItem >
49
49
) }
50
50
</ List >
51
- < Divider
52
- orientation = 'vertical'
53
- borderLeftWidth = '2px'
54
- borderColor = 'base.200'
55
- h = '1rem'
56
- />
57
- < UserInfo />
51
+ { isEnabled && (
52
+ < >
53
+ < Divider
54
+ orientation = 'vertical'
55
+ borderLeftWidth = '2px'
56
+ borderColor = 'base.200'
57
+ h = '1rem'
58
+ />
59
+ < UserInfo />
60
+ </ >
61
+ ) }
58
62
</ Flex >
59
63
) ;
60
64
}
You can’t perform that action at this time.
0 commit comments