fix obsolete JS in padding & justification

This commit is contained in:
proddy
2021-10-22 22:15:23 +02:00
parent 337c07d7bc
commit 068bb5cbeb
5 changed files with 10 additions and 10 deletions

View File

@@ -3,12 +3,12 @@ import { Component } from 'react';
import { CssBaseline } from '@material-ui/core'; import { CssBaseline } from '@material-ui/core';
import { import {
MuiThemeProvider, MuiThemeProvider,
createMuiTheme, createTheme,
StylesProvider StylesProvider
} from '@material-ui/core/styles'; } from '@material-ui/core/styles';
import { blueGrey, orange, red, green } from '@material-ui/core/colors'; import { blueGrey, orange, red, green } from '@material-ui/core/colors';
const theme = createMuiTheme({ const theme = createTheme({
palette: { palette: {
type: 'dark', type: 'dark',
primary: { primary: {

View File

@@ -310,7 +310,7 @@ class EMSESPDataForm extends Component<
{!this.noDevices() && ( {!this.noDevices() && (
<Table <Table
size="small" size="small"
padding={isWidthDown('xs', width!) ? 'none' : 'default'} padding={isWidthDown('xs', width!) ? 'none' : 'normal'}
> >
<TableBody> <TableBody>
{data.devices.sort(compareDevices).map((device) => ( {data.devices.sort(compareDevices).map((device) => (
@@ -376,7 +376,7 @@ class EMSESPDataForm extends Component<
Sensors Sensors
</Typography> </Typography>
{!this.noSensors() && ( {!this.noSensors() && (
<Table size="small" padding="default"> <Table size="small" padding="normal">
<TableHead> <TableHead>
<TableRow> <TableRow>
<StyledTableCell <StyledTableCell
@@ -433,7 +433,7 @@ class EMSESPDataForm extends Component<
return ( return (
<TableContainer> <TableContainer>
{data.analog > 0 && ( {data.analog > 0 && (
<Table size="small" padding="default"> <Table size="small" padding="normal">
<TableHead> <TableHead>
<TableRow> <TableRow>
<StyledTableCell>Sensortype</StyledTableCell> <StyledTableCell>Sensortype</StyledTableCell>
@@ -574,7 +574,7 @@ class EMSESPDataForm extends Component<
<TableContainer> <TableContainer>
<Table <Table
size="small" size="small"
padding={isWidthDown('xs', width!) ? 'none' : 'default'} padding={isWidthDown('xs', width!) ? 'none' : 'normal'}
> >
<TableHead></TableHead> <TableHead></TableHead>
<TableBody> <TableBody>

View File

@@ -58,7 +58,7 @@ class EMSESPStatusForm extends Component<EMSESPStatusFormProps> {
<TableContainer> <TableContainer>
<Table <Table
size="small" size="small"
padding={isWidthDown('xs', width!) ? 'none' : 'default'} padding={isWidthDown('xs', width!) ? 'none' : 'normal'}
> >
<TableBody> <TableBody>
<TableRow> <TableRow>

View File

@@ -150,7 +150,7 @@ class ManageUsersForm extends React.Component<
<ValidatorForm onSubmit={this.onSubmit}> <ValidatorForm onSubmit={this.onSubmit}>
<Table <Table
size="small" size="small"
padding={isWidthDown('xs', width!) ? 'none' : 'default'} padding={isWidthDown('xs', width!) ? 'none' : 'normal'}
> >
<TableHead> <TableHead>
<TableRow> <TableRow>
@@ -197,7 +197,7 @@ class ManageUsersForm extends React.Component<
<TableFooter> <TableFooter>
<TableRow> <TableRow>
<TableCell colSpan={2} /> <TableCell colSpan={2} />
<TableCell align="center" padding="default"> <TableCell align="center" padding="normal">
<Button <Button
startIcon={<PersonAddIcon />} startIcon={<PersonAddIcon />}
variant="contained" variant="contained"

View File

@@ -262,7 +262,7 @@ class LogEventController extends Component<
container container
spacing={3} spacing={3}
direction="row" direction="row"
justify="flex-start" justifyContent="flex-start"
alignItems="center" alignItems="center"
> >
<Grid item xs={2}> <Grid item xs={2}>