mirror of
https://github.com/CyberL1/dlinux-dashboard.git
synced 2025-01-22 01:19:18 -05:00
feat: add tooltips to sidebar icons
This commit is contained in:
parent
17c2a3042f
commit
f1b7e063bb
@ -16,6 +16,7 @@ import {
|
||||
ListItemText,
|
||||
ThemeProvider,
|
||||
Toolbar,
|
||||
Tooltip,
|
||||
Typography,
|
||||
} from "@mui/material";
|
||||
import * as Icons from "@mui/icons-material";
|
||||
@ -86,6 +87,7 @@ function App({ error }: { error?: boolean }) {
|
||||
<Toolbar />
|
||||
<List>
|
||||
{sidebarItems.map((item) => (
|
||||
<Tooltip title={item.title} placement="left" arrow>
|
||||
<ListItem
|
||||
key={item.title}
|
||||
component={Link}
|
||||
@ -100,6 +102,7 @@ function App({ error }: { error?: boolean }) {
|
||||
<ListItemText primary={item.title} />
|
||||
</ListItemButton>
|
||||
</ListItem>
|
||||
</Tooltip>
|
||||
))}
|
||||
</List>
|
||||
</Drawer>
|
||||
|
Loading…
x
Reference in New Issue
Block a user