remove typography warning
This commit is contained in:
parent
736f3411df
commit
6e56054d1d
@ -1,4 +1,4 @@
|
||||
import React, {Component} from 'react';
|
||||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { connect } from 'react-redux';
|
||||
|
||||
@ -8,7 +8,6 @@ import { withStyles } from '@material-ui/core/styles';
|
||||
import Tooltip from '@material-ui/core/Tooltip';
|
||||
import Chip from '@material-ui/core/Chip';
|
||||
import Avatar from '@material-ui/core/Avatar';
|
||||
import Typography from '@material-ui/core/Typography';
|
||||
|
||||
import { faPuzzlePiece, faTrash, faPlus, faPen, faArrowsAlt } from "@fortawesome/free-solid-svg-icons";
|
||||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
||||
@ -29,10 +28,10 @@ class WorkspaceStats extends Component {
|
||||
const workspace = Blockly.getMainWorkspace();
|
||||
const remainingBlocksInfinity = workspace ? workspace.remainingCapacity() !== Infinity : null;
|
||||
return (
|
||||
<div style={{marginBottom: '20px'}}>
|
||||
<div style={{ marginBottom: '20px' }}>
|
||||
<Tooltip title="Anzahl aktueller Blöcke" >
|
||||
<Chip
|
||||
style={{marginRight: '1rem'}}
|
||||
style={{ marginRight: '1rem' }}
|
||||
color="primary"
|
||||
title="Anzahl aktueller Blöcke"
|
||||
avatar={<Avatar><FontAwesomeIcon icon={faPuzzlePiece} /></Avatar>}
|
||||
@ -41,7 +40,7 @@ class WorkspaceStats extends Component {
|
||||
</Tooltip>
|
||||
<Tooltip title="Anzahl aktueller Blöcke" >
|
||||
<Chip
|
||||
style={{marginRight: '1rem'}}
|
||||
style={{ marginRight: '1rem' }}
|
||||
color="primary"
|
||||
title="Anzahl neuer Blöcke"
|
||||
avatar={<Avatar><FontAwesomeIcon icon={faPlus} /></Avatar>}
|
||||
@ -50,7 +49,7 @@ class WorkspaceStats extends Component {
|
||||
</Tooltip>
|
||||
<Tooltip title="Anzahl veränderter Blöcke" >
|
||||
<Chip
|
||||
style={{marginRight: '1rem'}}
|
||||
style={{ marginRight: '1rem' }}
|
||||
color="primary"
|
||||
title="Anzahl neuer Blöcke"
|
||||
avatar={<Avatar><FontAwesomeIcon icon={faPen} /></Avatar>}
|
||||
@ -59,7 +58,7 @@ class WorkspaceStats extends Component {
|
||||
</Tooltip>
|
||||
<Tooltip title="Anzahl bewegter Blöcke" >
|
||||
<Chip
|
||||
style={{marginRight: '1rem'}}
|
||||
style={{ marginRight: '1rem' }}
|
||||
color="primary"
|
||||
avatar={<Avatar><FontAwesomeIcon icon={faArrowsAlt} /></Avatar>}
|
||||
label={this.props.move}>
|
||||
@ -67,7 +66,7 @@ class WorkspaceStats extends Component {
|
||||
</Tooltip>
|
||||
<Tooltip title="Anzahl gelöschter Blöcke" >
|
||||
<Chip
|
||||
style={{marginRight: '1rem'}}
|
||||
style={{ marginRight: '1rem' }}
|
||||
color="primary"
|
||||
avatar={<Avatar><FontAwesomeIcon icon={faTrash} /></Avatar>}
|
||||
label={this.props.delete}>
|
||||
@ -76,7 +75,7 @@ class WorkspaceStats extends Component {
|
||||
{remainingBlocksInfinity ?
|
||||
<Tooltip title="Verbleibende Blöcke" >
|
||||
<Chip
|
||||
style={{marginRight: '1rem'}}
|
||||
style={{ marginRight: '1rem' }}
|
||||
color="primary"
|
||||
label={workspace.remainingCapacity()}>
|
||||
</Chip>
|
||||
@ -102,4 +101,4 @@ const mapStateToProps = state => ({
|
||||
worskpaceChange: state.workspace.change
|
||||
});
|
||||
|
||||
export default connect(mapStateToProps, null)(withStyles(styles, {withTheme: true})(WorkspaceStats));
|
||||
export default connect(mapStateToProps, null)(withStyles(styles, { withTheme: true })(WorkspaceStats));
|
||||
|
Loading…
x
Reference in New Issue
Block a user