linear progress at navbar

This commit is contained in:
Delucse
2020-11-27 12:26:16 +01:00
parent cbe091db27
commit 28720edeea
3 changed files with 18 additions and 6 deletions
+1 -2
View File
@@ -17,7 +17,6 @@ import { detectWhitespacesAndReturnReadableResult } from '../../helpers/whitespa
import Card from '@material-ui/core/Card';
import Button from '@material-ui/core/Button';
import LinearProgress from '@material-ui/core/LinearProgress';
class Tutorial extends Component {
@@ -49,7 +48,7 @@ class Tutorial extends Component {
console.log(this.props.tutorial);
return (
<div>
{this.props.isLoading ? <LinearProgress /> :
{this.props.isLoading ? null :
!this.props.tutorial ? <NotFound button={{ title: 'Zurück zur Tutorials-Übersicht', link: '/tutorial' }} />
: (() => {
var tutorial = this.props.tutorial;
+1 -2
View File
@@ -15,7 +15,6 @@ import { withStyles } from '@material-ui/core/styles';
import Grid from '@material-ui/core/Grid';
import Paper from '@material-ui/core/Paper';
import Typography from '@material-ui/core/Typography';
import LinearProgress from '@material-ui/core/LinearProgress';
import { faCheck, faTimes } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
@@ -72,7 +71,7 @@ class TutorialHome extends Component {
render() {
return (
this.props.isLoading ? <LinearProgress /> :
this.props.isLoading ? null :
<div>
<Breadcrumbs content={[{ link: '/tutorial', title: 'Tutorial' }]} />