11import '@pages/sidepanel/SidePanel.css' ;
22
3- import {
4- useEffect ,
5- useState ,
6- } from 'react' ;
3+ import { useEffect , useState } from 'react' ;
74
8- import {
9- Route ,
10- Routes ,
11- useLocation ,
12- useNavigate ,
13- } from 'react-router-dom' ;
5+ import { Route , Routes , useLocation , useNavigate } from 'react-router-dom' ;
146
15- import {
16- Box ,
17- CircularProgress ,
18- } from '@mui/material' ;
7+ import { Box , CircularProgress } from '@mui/material' ;
198import BottomNavigation from '@root/src/pages/sidepanel/components/BottomNavigation' ;
209import Configuration from '@root/src/pages/sidepanel/sections/Configuration' ;
2110import Debugger from '@root/src/pages/sidepanel/sections/Debugger' ;
2211import Personalization from '@root/src/pages/sidepanel/sections/Personalization' ;
2312import Profile from '@root/src/pages/sidepanel/sections/Profile' ;
24- import {
25- TagConfigModel ,
26- TagConfigPathforaCandidates ,
27- } from '@root/src/shared/models/tagConfigModel' ;
13+ import { TagConfigModel , TagConfigPathforaCandidates } from '@root/src/shared/models/tagConfigModel' ;
2814import { EmitLog } from '@src/shared/components/EmitLog' ;
2915import entityStorage from '@src/shared/storages/entityStorage' ;
3016import tagConfigStore from '@src/shared/storages/tagConfigStorage' ;
3117
18+ import TagStatus from './sections/TagStatus' ;
19+
3220interface SidePanelProps {
3321 key : any ;
3422 isEnabled : boolean ;
@@ -215,12 +203,7 @@ const SidePanel: React.FC<SidePanelProps> = ({ key, isEnabled }) => {
215203 </ Box >
216204 ) : (
217205 < >
218- < Box
219- minHeight = { `calc(100vh - 56px)` }
220- justifyContent = { 'center' }
221- alignItems = { 'flex-start' }
222- display = "flex"
223- flexDirection = "column" >
206+ < Box justifyContent = { 'center' } alignItems = { 'flex-start' } display = "flex" flexDirection = "column" >
224207 < Routes >
225208 < Route path = "/settings" element = { < Configuration /> } />
226209 < Route
@@ -241,7 +224,7 @@ const SidePanel: React.FC<SidePanelProps> = ({ key, isEnabled }) => {
241224 }
242225 />
243226 < Route
244- path = "* "
227+ path = "/debug "
245228 element = {
246229 < Debugger
247230 tagIsInstalled = { tagIsInstalled }
@@ -251,12 +234,10 @@ const SidePanel: React.FC<SidePanelProps> = ({ key, isEnabled }) => {
251234 />
252235 }
253236 />
237+ < Route path = "*" element = { < TagStatus tagIsInstalled = { tagIsInstalled } tagConfig = { tagConfig } /> } />
254238 </ Routes >
255239 </ Box >
256- < BottomNavigation
257- value = { activePath }
258- onChange = { newValue => handleNavigation ( newValue ) }
259- />
240+ < BottomNavigation value = { activePath } onChange = { newValue => handleNavigation ( newValue ) } />
260241 </ >
261242 ) }
262243 </ >
0 commit comments