From b594bab67dae08c635d826ede84527b67972ee09 Mon Sep 17 00:00:00 2001 From: lukzerom Date: Thu, 16 Dec 2021 22:43:05 +0100 Subject: [PATCH] Breadcrumbs and icon update Signed-off-by: lukzerom --- packages/core-components/src/icons/icons.tsx | 10 ++++++++-- .../src/layout/Breadcrumbs/Breadcrumbs.tsx | 12 +++++++++--- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/packages/core-components/src/icons/icons.tsx b/packages/core-components/src/icons/icons.tsx index 7d5497f7e2..d2a01ef010 100644 --- a/packages/core-components/src/icons/icons.tsx +++ b/packages/core-components/src/icons/icons.tsx @@ -14,9 +14,9 @@ * limitations under the License. */ +import { IconComponent, useApp } from '@backstage/core-plugin-api'; import MuiBrokenImageIcon from '@material-ui/icons/BrokenImage'; import React, { ComponentProps } from 'react'; -import { useApp, IconComponent } from '@backstage/core-plugin-api'; type IconComponentProps = ComponentProps; @@ -27,7 +27,13 @@ function useSystemIcon(key: string, props: IconComponentProps) { } // Should match the list of overridable system icon keys in @backstage/core-app-api -/** @public */ +/** + * Broken Image {@link https://materialui.co/icon/broken-image | Icon} from material UI library + * + * @public + * @remarks + * + */ export function BrokenImageIcon(props: IconComponentProps) { return useSystemIcon('brokenImage', props); } diff --git a/packages/core-components/src/layout/Breadcrumbs/Breadcrumbs.tsx b/packages/core-components/src/layout/Breadcrumbs/Breadcrumbs.tsx index b0b2d6924f..02c595aadd 100644 --- a/packages/core-components/src/layout/Breadcrumbs/Breadcrumbs.tsx +++ b/packages/core-components/src/layout/Breadcrumbs/Breadcrumbs.tsx @@ -14,13 +14,13 @@ * limitations under the License. */ -import { withStyles } from '@material-ui/core/styles'; import Box from '@material-ui/core/Box'; +import MaterialBreadcrumbs from '@material-ui/core/Breadcrumbs'; import List from '@material-ui/core/List'; import ListItem from '@material-ui/core/ListItem'; import Popover from '@material-ui/core/Popover'; +import { withStyles } from '@material-ui/core/styles'; import Typography from '@material-ui/core/Typography'; -import MaterialBreadcrumbs from '@material-ui/core/Breadcrumbs'; import React, { ComponentProps, Fragment } from 'react'; type Props = ComponentProps; @@ -51,7 +51,13 @@ const StyledBox = withStyles( { name: 'BackstageBreadcrumbsStyledBox' }, )(Box); -/** @public */ +/** + * Breadcrumbs component to show navigation hierarchical structure + * + * @public + * @remarks + * + */ export function Breadcrumbs(props: Props) { const { children, ...restProps } = props; const [anchorEl, setAnchorEl] = React.useState(