File tree Expand file tree Collapse file tree 2 files changed +1
-42
lines changed Expand file tree Collapse file tree 2 files changed +1
-42
lines changed Original file line number Diff line number Diff line change 11import  {  Button ,  Stack  }  from  "@mui/material" ; 
22import  *  as  React  from  "react" ; 
33
4- import  {  BackendTestPage  }  from  "../../debug/page/backend_test" ; 
54import  {  ComponentTestPage  }  from  "../../debug/page/component_test" ; 
65import  {  MapTestPage  }  from  "../../debug/page/map_test" ; 
76import  {  MdiTestPage  }  from  "../../debug/page/mdi_test" ; 
87import  {  ShopTestPage  }  from  "../../debug/page/shop_test" ; 
98
109const  LOCAL_STORAGE_KEY  =  "selectedTab" ; 
11- type  SelectedTabType  =  "shop"  |  "mdi"  |  "backend"    |   " map"  |  "component" ; 
10+ type  SelectedTabType  =  "shop"  |  "mdi"  |  "map"  |  "component" ; 
1211
1312const  getTabFromLocalStorage  =  ( ) : SelectedTabType  =>  ( localStorage . getItem ( LOCAL_STORAGE_KEY )  as  SelectedTabType )  ||  "shop" ; 
1413
@@ -20,7 +19,6 @@ const setTabToLocalStorage = (tab: SelectedTabType) => {
2019const  TabList : {  [ key  in  SelectedTabType ] : React . ReactNode  }  =  { 
2120  shop : < ShopTestPage  /> , 
2221  mdi : < MdiTestPage  /> , 
23-   backend : < BackendTestPage  /> , 
2422  map : < MapTestPage  /> , 
2523  component : < ComponentTestPage  /> , 
2624} ; 
  Load Diff This file was deleted. 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments