1
1
import { Stack , Tooltip } from '@mantine/core' ;
2
2
import 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' ;
4
9
import { useCallback } from 'react' ;
5
10
import { useNavigate , useParams } from 'react-router-dom' ;
6
11
import { useAppStore } from '@/layouts/MainLayout/providers/AppProvider' ;
@@ -80,32 +85,32 @@ const ExpandCollapseButton = () => {
80
85
) ;
81
86
} ;
82
87
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
+ // };
105
110
106
111
const SideBar = ( ) => {
107
112
const [ currentStream ] = useAppStore ( ( store ) => store . currentStream ) ;
108
- const [ isStandAloneMode ] = useAppStore ( ( store ) => store . isStandAloneMode ) ;
113
+ // const [isStandAloneMode] = useAppStore((store) => store.isStandAloneMode);
109
114
const { view } = useParams ( ) ;
110
115
const navigate = useNavigate ( ) ;
111
116
@@ -122,7 +127,7 @@ const SideBar = () => {
122
127
< Stack className = { classes . container } style = { { gap : 0 } } >
123
128
< Stack gap = { 0 } >
124
129
< AllLogsButton setCurrentView = { setCurrentView } currentView = { view || '' } />
125
- { isStandAloneMode && < LiveTailMenu setCurrentView = { setCurrentView } currentView = { view || '' } /> }
130
+ { /* { isStandAloneMode && <LiveTailMenu setCurrentView={setCurrentView} currentView={view || ''} /> } */ }
126
131
< ConfigButton setCurrentView = { setCurrentView } currentView = { view || '' } />
127
132
</ Stack >
128
133
< Stack style = { { marginTop : 'auto' } } >
0 commit comments