mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-09 06:55:47 +01:00
add some missing stories for ui-components
This commit is contained in:
@@ -59,24 +59,23 @@ class Breadcrumb extends React.Component<Props> {
|
||||
|
||||
if (path) {
|
||||
const paths = path.split("/");
|
||||
const map = paths.map((path, index) => {
|
||||
return paths.map((pathFragment, index) => {
|
||||
const currPath = paths.slice(0, index + 1).join("/");
|
||||
if (paths.length - 1 === index) {
|
||||
return (
|
||||
<li className="is-active" key={index}>
|
||||
<Link to="#" aria-current="page">
|
||||
{path}
|
||||
{pathFragment}
|
||||
</Link>
|
||||
</li>
|
||||
);
|
||||
}
|
||||
return (
|
||||
<li key={index}>
|
||||
<Link to={baseUrl + "/" + revision + "/" + currPath}>{path}</Link>
|
||||
<Link to={baseUrl + "/" + revision + "/" + currPath}>{pathFragment}</Link>
|
||||
</li>
|
||||
);
|
||||
});
|
||||
return map;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user