From fa3f1b2f464710260472b09d68dda098da4a4462 Mon Sep 17 00:00:00 2001
From: tudi2d
Date: Fri, 12 Feb 2021 10:59:48 +0100
Subject: [PATCH] Add breadcrumbs component to header
---
.../Breadcrumbs/Breadcrumbs.stories.tsx | 40 ++++++++++++-------
.../src/layout/Breadcrumbs/Breadcrumbs.tsx | 12 +++---
packages/core/src/layout/Header/Header.tsx | 23 +++--------
3 files changed, 36 insertions(+), 39 deletions(-)
diff --git a/packages/core/src/layout/Breadcrumbs/Breadcrumbs.stories.tsx b/packages/core/src/layout/Breadcrumbs/Breadcrumbs.stories.tsx
index f2a6611d03..6f0ef0cb69 100644
--- a/packages/core/src/layout/Breadcrumbs/Breadcrumbs.stories.tsx
+++ b/packages/core/src/layout/Breadcrumbs/Breadcrumbs.stories.tsx
@@ -13,12 +13,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-import { Popover, Typography, Box, List, ListItem } from '@material-ui/core';
-import ExpandMoreIcon from '@material-ui/icons/ExpandMore';
+import { Box, List, ListItem, Popover, Typography } from '@material-ui/core';
import ExpandLessIcon from '@material-ui/icons/ExpandLess';
+import ExpandMoreIcon from '@material-ui/icons/ExpandMore';
import React, { Fragment } from 'react';
import { MemoryRouter } from 'react-router-dom';
import { Breadcrumbs } from '.';
+import { Header, Page } from '..';
import { Link } from '../../components/Link';
export default {
@@ -26,7 +27,19 @@ export default {
component: Breadcrumbs,
};
-// export const InHeader = () => ;
+export const InHeader = () => (
+
+
Standard breadcrumbs
+
+ Underlined pages are links. This should show a hierarchical relationship.
+
+
+
+
+
+
+);
+
export const OutsideOfHeader = () => {
const [anchorEl, setAnchorEl] = React.useState(
null,
@@ -47,23 +60,20 @@ export const OutsideOfHeader = () => {
the header. In that case, they should be positioned above the title of
the page.
+
Standard breadcrumbs
Underlined pages are links. This should show a hierarchical
relationship.
-
+
+
+
+
General Page
Second Page
Current page
-
- General Page
- Current page
-
-
- Current page
-