added tooltips back to smartbreacrumb chips
This commit is contained in:
parent
6a6334da6a
commit
34b3017325
1 changed files with 18 additions and 16 deletions
|
|
@ -7,6 +7,7 @@ import {
|
|||
LinkProps,
|
||||
Skeleton,
|
||||
Theme,
|
||||
Tooltip,
|
||||
Typography,
|
||||
useTheme
|
||||
} from "@mui/material";
|
||||
|
|
@ -334,22 +335,23 @@ export default function SmartBreadcrumb(props: Props) {
|
|||
|
||||
const linkComponent = (to: string, label: string, lastPath: boolean) => {
|
||||
return (
|
||||
<Chip
|
||||
key={to}
|
||||
variant={lastPath ? "filled" : "outlined"}
|
||||
label={
|
||||
<LinkRouter
|
||||
color={lastPath ? "textPrimary" : "textSecondary"}
|
||||
variant="subtitle1"
|
||||
to={to}
|
||||
state={state}
|
||||
sx={{ '&:hover': { color: getThemeType() === "dark" ? 'white' : "black" }}}
|
||||
className={classes.textOverflow}>
|
||||
{label}
|
||||
</LinkRouter>
|
||||
}
|
||||
className={classes.chip}
|
||||
/>
|
||||
<Tooltip title={label} key={"breadcrumb-"+to}>
|
||||
<Chip
|
||||
variant={lastPath ? "filled" : "outlined"}
|
||||
label={
|
||||
<LinkRouter
|
||||
color={lastPath ? "textPrimary" : "textSecondary"}
|
||||
variant="subtitle1"
|
||||
to={to}
|
||||
state={state}
|
||||
sx={{ '&:hover': { color: getThemeType() === "dark" ? 'white' : "black" }}}
|
||||
className={classes.textOverflow}>
|
||||
{label}
|
||||
</LinkRouter>
|
||||
}
|
||||
className={classes.chip}
|
||||
/>
|
||||
</Tooltip>
|
||||
);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue