From d70207ea1ac3939499ad158e9ea1bf9c39635f4c Mon Sep 17 00:00:00 2001
From: Delucse <46593742+Delucse@users.noreply.github.com>
Date: Thu, 17 Sep 2020 14:13:30 +0200
Subject: [PATCH] breadcrumbs with inital home-link
---
src/components/Breadcrumbs.js | 36 ++++++++++++++++++++-----
src/components/NotFound.js | 2 +-
src/components/Tutorial/Tutorial.js | 2 +-
src/components/Tutorial/TutorialHome.js | 2 +-
4 files changed, 32 insertions(+), 10 deletions(-)
diff --git a/src/components/Breadcrumbs.js b/src/components/Breadcrumbs.js
index 71a57ea..dc0af20 100644
--- a/src/components/Breadcrumbs.js
+++ b/src/components/Breadcrumbs.js
@@ -1,27 +1,49 @@
import React, { Component } from 'react';
import { Link } from 'react-router-dom';
+import clsx from 'clsx';
-import Breadcrumbs from '@material-ui/core/Breadcrumbs';
+import { withStyles } from '@material-ui/core/styles';
+import MaterialUIBreadcrumbs from '@material-ui/core/Breadcrumbs';
import Typography from '@material-ui/core/Typography';
-class MyBreadcrumbs extends Component {
+import { faHome } from "@fortawesome/free-solid-svg-icons";
+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
+
+const styles = (theme) => ({
+ home: {
+ color: theme.palette.secondary.main,
+ width: '20px !important',
+ height: '20px',
+ marginTop: '2px'
+ },
+ hover: {
+ '&:hover': {
+ color: theme.palette.primary.main
+ }
+ }
+});
+
+class Breadcrumbs extends Component {
render() {
return (
- this.props.content && this.props.content.length > 1 ?
-