diff options
Diffstat (limited to 'components/PathCrumbs/index.tsx')
-rw-r--r-- | components/PathCrumbs/index.tsx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/components/PathCrumbs/index.tsx b/components/PathCrumbs/index.tsx index 1c87344..41875ec 100644 --- a/components/PathCrumbs/index.tsx +++ b/components/PathCrumbs/index.tsx @@ -34,12 +34,13 @@ const urlPathComponentsToFullPath = (urlPathComponents : string[]): string[] => }; export type PathCrumbsProps = { - path: string + path: string; + style?: React.CSSProperties; }; import { BreadCrumbs , LinkCrumb } from '../../components/BreadCrumbs'; -const PathCrumbs: FC<PathCrumbsProps> = ({ path }) => { +const PathCrumbs: FC<PathCrumbsProps> = ({ path, style }) => { const pathComponents = urlPathComponents(path); const fullPaths = urlPathComponentsToFullPath(pathComponents); @@ -51,7 +52,7 @@ const PathCrumbs: FC<PathCrumbsProps> = ({ path }) => { )); return ( - <BreadCrumbs> + <BreadCrumbs style={style}> {linksComponents} </BreadCrumbs> ); |