File tree Expand file tree Collapse file tree 2 files changed +13
-11
lines changed Expand file tree Collapse file tree 2 files changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -49,9 +49,7 @@ const rotate2 = keyframes`
4949` ; 
5050
5151export  function  App ( )  { 
52-   const  {  initStatus }  =  useKeycloak ( ) ; 
53- 
54-   const  isLoading  =  initStatus  ===  'loading' ; 
52+   const  {  isLoading }  =  useKeycloak ( ) ; 
5553
5654  return  ( 
5755    < > 
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ function NavItem(props: ButtonProps & SmartLinkProps) {
3434} 
3535
3636function  MainNavigation ( )  { 
37-   const  {  keycloak }  =  useKeycloak ( ) ; 
37+   const  {  keycloak,  isEnabled  }  =  useKeycloak ( ) ; 
3838
3939  return  ( 
4040    < Flex  as = 'nav'  aria-label = 'Main'  gap = { 4 }  alignItems = 'center' > 
@@ -48,13 +48,17 @@ function MainNavigation() {
4848          </ NavItem > 
4949        ) } 
5050      </ 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+       ) } 
5862    </ Flex > 
5963  ) ; 
6064} 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments