mirror of
https://github.com/portainer/portainer.git
synced 2025-08-02 20:35:25 +02:00
feat(ui): portainer base component css change [EE-3381] (#7115)
This commit is contained in:
parent
825269c119
commit
f78a6568a6
70 changed files with 999 additions and 1596 deletions
|
@ -10,7 +10,7 @@ export interface Crumb {
|
|||
linkParams?: Record<string, unknown>;
|
||||
}
|
||||
interface Props {
|
||||
breadcrumbs: Crumb[];
|
||||
breadcrumbs: (Crumb | string)[];
|
||||
}
|
||||
|
||||
export function Breadcrumbs({ breadcrumbs }: Props) {
|
||||
|
@ -26,7 +26,11 @@ export function Breadcrumbs({ breadcrumbs }: Props) {
|
|||
);
|
||||
}
|
||||
|
||||
function renderCrumb(crumb: Crumb) {
|
||||
function renderCrumb(crumb: Crumb | string) {
|
||||
if (typeof crumb === 'string') {
|
||||
return crumb;
|
||||
}
|
||||
|
||||
if (crumb.link) {
|
||||
return (
|
||||
<Link to={crumb.link} params={crumb.linkParams}>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue