This commit is contained in:
casperlamboo 2017-11-13 10:43:42 +01:00
parent cd737da6d9
commit 45e0f02936
2 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,7 @@ class Settings extends React.Component {
constructor(props) { constructor(props) {
super(props); super(props);
this.state = { this.state = {
settings: props.initalSettings, settings: props.initialSettings,
printers: props.defaultPrinter, printers: props.defaultPrinter,
quality: props.defaultQuality, quality: props.defaultQuality,
material: props.defaultMaterial material: props.defaultMaterial
@ -157,7 +157,7 @@ Settings.propTypes = {
defaultQuality: PropTypes.string.isRequired, defaultQuality: PropTypes.string.isRequired,
material: PropTypes.object.isRequired, material: PropTypes.object.isRequired,
defaultMaterial: PropTypes.string.isRequired, defaultMaterial: PropTypes.string.isRequired,
initalSettings: PropTypes.object.isRequired initialSettings: PropTypes.object.isRequired
}; };
export default injectSheet(styles)(Settings); export default injectSheet(styles)(Settings);

View File

@ -194,7 +194,7 @@ class Interface extends React.Component {
defaultQuality={defaultQuality} defaultQuality={defaultQuality}
material={materialSettings} material={materialSettings}
defaultMaterial={defaultMaterial} defaultMaterial={defaultMaterial}
initalSettings={settings} initialSettings={settings}
onChange={this.onChangeSettings} onChange={this.onChangeSettings}
/> />
<RaisedButton className={classes.button} fullWidth disabled={isSlicing} onTouchTap={this.slice} primary label="slice" /> <RaisedButton className={classes.button} fullWidth disabled={isSlicing} onTouchTap={this.slice} primary label="slice" />