11import { Stack , Tooltip } from '@mantine/core' ;
22import classes from '../styles/SideBar.module.css' ;
3- import { IconBolt , IconChevronsRight , IconFilterSearch , IconSettings2 } from '@tabler/icons-react' ;
3+ import {
4+ // IconBolt,
5+ IconChevronsRight ,
6+ IconFilterSearch ,
7+ IconSettings2 ,
8+ } from '@tabler/icons-react' ;
49import { useCallback } from 'react' ;
510import { useNavigate , useParams } from 'react-router-dom' ;
611import { useAppStore } from '@/layouts/MainLayout/providers/AppProvider' ;
@@ -80,32 +85,32 @@ const ExpandCollapseButton = () => {
8085 ) ;
8186} ;
8287
83- const LiveTailMenu = ( props : MenuItemProps ) => {
84- const viewName = 'live-tail' ;
85- const isActive = props . currentView === viewName ;
86- const additionalClassNames = `${ isActive ? classes . activeMenuItem : '' } ` ;
87- return (
88- < Stack
89- onClick = { ( ) => props . setCurrentView ( viewName ) }
90- className = { classes . menuItemContainer }
91- style = { { padding : '4px 0' , alignItems : 'center' } } >
92- < Tooltip label = "Live Tail" position = "right" >
93- < Stack className = { additionalClassNames } style = { { padding : '4px 4px' } } >
94- < IconBolt
95- stroke = { isActive ? 1.4 : 1.2 }
96- size = "1.2rem"
97- className = { classes . icon }
98- { ...( isActive && { color : 'black' } ) }
99- />
100- </ Stack >
101- </ Tooltip >
102- </ Stack >
103- ) ;
104- } ;
88+ // const LiveTailMenu = (props: MenuItemProps) => {
89+ // const viewName = 'live-tail';
90+ // const isActive = props.currentView === viewName;
91+ // const additionalClassNames = `${isActive ? classes.activeMenuItem : ''}`;
92+ // return (
93+ // <Stack
94+ // onClick={() => props.setCurrentView(viewName)}
95+ // className={classes.menuItemContainer}
96+ // style={{ padding: '4px 0', alignItems: 'center' }}>
97+ // <Tooltip label="Live Tail" position="right">
98+ // <Stack className={additionalClassNames} style={{ padding: '4px 4px' }}>
99+ // <IconBolt
100+ // stroke={isActive ? 1.4 : 1.2}
101+ // size="1.2rem"
102+ // className={classes.icon}
103+ // {...(isActive && { color: 'black' }) }
104+ // />
105+ // </Stack>
106+ // </Tooltip>
107+ // </Stack>
108+ // );
109+ // };
105110
106111const SideBar = ( ) => {
107112 const [ currentStream ] = useAppStore ( ( store ) => store . currentStream ) ;
108- const [ isStandAloneMode ] = useAppStore ( ( store ) => store . isStandAloneMode ) ;
113+ // const [isStandAloneMode] = useAppStore((store) => store.isStandAloneMode);
109114 const { view } = useParams ( ) ;
110115 const navigate = useNavigate ( ) ;
111116
@@ -122,7 +127,7 @@ const SideBar = () => {
122127 < Stack className = { classes . container } style = { { gap : 0 } } >
123128 < Stack gap = { 0 } >
124129 < AllLogsButton setCurrentView = { setCurrentView } currentView = { view || '' } />
125- { isStandAloneMode && < LiveTailMenu setCurrentView = { setCurrentView } currentView = { view || '' } /> }
130+ { /* { isStandAloneMode && <LiveTailMenu setCurrentView={setCurrentView} currentView={view || ''} /> } */ }
126131 < ConfigButton setCurrentView = { setCurrentView } currentView = { view || '' } />
127132 </ Stack >
128133 < Stack style = { { marginTop : 'auto' } } >
0 commit comments