Fix material ui depracations.

master
Tom Hacohen 6 years ago
parent 59aef075f5
commit d11180fed6

@ -107,7 +107,7 @@ class Journal extends React.Component<PropsTypeInner> {
} }
</AppBarOverride> </AppBarOverride>
<Tabs <Tabs
fullWidth={true} variant="fullWidth"
style={{ backgroundColor: theme.palette.primary.main }} style={{ backgroundColor: theme.palette.primary.main }}
value={currentTab} value={currentTab}
onChange={(event, tab) => this.setState({ tab })} onChange={(event, tab) => this.setState({ tab })}

@ -123,7 +123,7 @@ class JournalEdit extends React.PureComponent<PropsTypeInner> {
<div style={styles.submit}> <div style={styles.submit}>
<Button <Button
variant="raised" variant="contained"
onClick={onCancel} onClick={onCancel}
> >
<IconCancel style={{marginRight: 8}} /> <IconCancel style={{marginRight: 8}} />
@ -132,7 +132,7 @@ class JournalEdit extends React.PureComponent<PropsTypeInner> {
{this.props.item && {this.props.item &&
<Button <Button
variant="raised" variant="contained"
style={{marginLeft: 15, backgroundColor: colors.red[500], color: 'white'}} style={{marginLeft: 15, backgroundColor: colors.red[500], color: 'white'}}
onClick={this.onDeleteRequest} onClick={this.onDeleteRequest}
> >
@ -143,7 +143,7 @@ class JournalEdit extends React.PureComponent<PropsTypeInner> {
<Button <Button
type="submit" type="submit"
variant="raised" variant="contained"
color="secondary" color="secondary"
style={{marginLeft: 15}} style={{marginLeft: 15}}
> >

@ -1,5 +1,5 @@
import * as React from 'react'; import * as React from 'react';
import Button from '@material-ui/core/Button'; import Fab from '@material-ui/core/Fab';
import ContentAdd from '@material-ui/icons/Add'; import ContentAdd from '@material-ui/icons/Add';
import Tab from '@material-ui/core/Tab'; import Tab from '@material-ui/core/Tab';
import Tabs from '@material-ui/core/Tabs'; import Tabs from '@material-ui/core/Tabs';
@ -95,7 +95,7 @@ class PimMain extends React.PureComponent<PropsType> {
return ( return (
<React.Fragment> <React.Fragment>
<Tabs <Tabs
fullWidth={true} variant="fullWidth"
style={{ backgroundColor: theme.palette.primary.main }} style={{ backgroundColor: theme.palette.primary.main }}
value={tab} value={tab}
onChange={(event, value) => this.setState({tab: value})} onChange={(event, value) => this.setState({tab: value})}
@ -122,14 +122,13 @@ class PimMain extends React.PureComponent<PropsType> {
</Container> </Container>
} }
<Button <Fab
variant="fab"
color="primary" color="primary"
style={style.floatingButton} style={style.floatingButton}
onClick={this.floatingButtonClicked} onClick={this.floatingButtonClicked}
> >
<ContentAdd /> <ContentAdd />
</Button> </Fab>
</React.Fragment> </React.Fragment>
); );
} }

@ -479,7 +479,7 @@ class ContactEdit extends React.PureComponent {
<div style={styles.submit}> <div style={styles.submit}>
<Button <Button
variant="raised" variant="contained"
onClick={this.props.onCancel} onClick={this.props.onCancel}
> >
<IconCancel style={{marginRight: 8}} /> <IconCancel style={{marginRight: 8}} />
@ -488,7 +488,7 @@ class ContactEdit extends React.PureComponent {
{this.props.item && {this.props.item &&
<Button <Button
variant="raised" variant="contained"
style={{marginLeft: 15, backgroundColor: colors.red[500], color: 'white'}} style={{marginLeft: 15, backgroundColor: colors.red[500], color: 'white'}}
onClick={this.onDeleteRequest} onClick={this.onDeleteRequest}
> >
@ -499,7 +499,7 @@ class ContactEdit extends React.PureComponent {
<Button <Button
type="submit" type="submit"
variant="raised" variant="contained"
color="secondary" color="secondary"
style={{marginLeft: 15}} style={{marginLeft: 15}}
> >

@ -85,7 +85,7 @@ class EncryptionLoginForm extends React.PureComponent {
<div style={styles.submit}> <div style={styles.submit}>
<Button <Button
type="submit" type="submit"
variant="raised" variant="contained"
color="secondary" color="secondary"
disabled={this.props.loading} disabled={this.props.loading}
> >

@ -305,7 +305,7 @@ class EventEdit extends React.PureComponent {
<div style={styles.submit}> <div style={styles.submit}>
<Button <Button
variant="raised" variant="contained"
onClick={this.props.onCancel} onClick={this.props.onCancel}
> >
<IconCancel style={{marginRight: 8}} /> <IconCancel style={{marginRight: 8}} />
@ -314,7 +314,7 @@ class EventEdit extends React.PureComponent {
{this.props.item && {this.props.item &&
<Button <Button
variant="raised" variant="contained"
style={{marginLeft: 15, backgroundColor: colors.red[500], color: 'white'}} style={{marginLeft: 15, backgroundColor: colors.red[500], color: 'white'}}
onClick={this.onDeleteRequest} onClick={this.onDeleteRequest}
> >
@ -325,7 +325,7 @@ class EventEdit extends React.PureComponent {
<Button <Button
type="submit" type="submit"
variant="raised" variant="contained"
color="secondary" color="secondary"
style={{marginLeft: 15}} style={{marginLeft: 15}}
> >

@ -184,7 +184,7 @@ class LoginForm extends React.PureComponent {
<div style={styles.submit}> <div style={styles.submit}>
<Button <Button
variant="raised" variant="contained"
type="submit" type="submit"
color="secondary" color="secondary"
disabled={this.props.loading} disabled={this.props.loading}

Loading…
Cancel
Save