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,
|
ListItemText,
|
||||||
ThemeProvider,
|
ThemeProvider,
|
||||||
Toolbar,
|
Toolbar,
|
||||||
|
Tooltip,
|
||||||
Typography,
|
Typography,
|
||||||
} from "@mui/material";
|
} from "@mui/material";
|
||||||
import * as Icons from "@mui/icons-material";
|
import * as Icons from "@mui/icons-material";
|
||||||
@ -86,6 +87,7 @@ function App({ error }: { error?: boolean }) {
|
|||||||
<Toolbar />
|
<Toolbar />
|
||||||
<List>
|
<List>
|
||||||
{sidebarItems.map((item) => (
|
{sidebarItems.map((item) => (
|
||||||
|
<Tooltip title={item.title} placement="left" arrow>
|
||||||
<ListItem
|
<ListItem
|
||||||
key={item.title}
|
key={item.title}
|
||||||
component={Link}
|
component={Link}
|
||||||
@ -100,6 +102,7 @@ function App({ error }: { error?: boolean }) {
|
|||||||
<ListItemText primary={item.title} />
|
<ListItemText primary={item.title} />
|
||||||
</ListItemButton>
|
</ListItemButton>
|
||||||
</ListItem>
|
</ListItem>
|
||||||
|
</Tooltip>
|
||||||
))}
|
))}
|
||||||
</List>
|
</List>
|
||||||
</Drawer>
|
</Drawer>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user