mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-11-22 13:37:58 +01:00
fix props
This commit is contained in:
parent
5f1a7e3e74
commit
e33c967934
@ -26,12 +26,14 @@ class Settings extends React.Component {
|
|||||||
defaultMaterial: PropTypes.string.isRequired,
|
defaultMaterial: PropTypes.string.isRequired,
|
||||||
initialSettings: PropTypes.object.isRequired
|
initialSettings: PropTypes.object.isRequired
|
||||||
};
|
};
|
||||||
state = {
|
constructor(props) {
|
||||||
|
this.state = {
|
||||||
settings: props.initialSettings,
|
settings: props.initialSettings,
|
||||||
printers: props.defaultPrinter,
|
printers: props.defaultPrinter,
|
||||||
quality: props.defaultQuality,
|
quality: props.defaultQuality,
|
||||||
material: props.defaultMaterial
|
material: props.defaultMaterial
|
||||||
};
|
};
|
||||||
|
}
|
||||||
|
|
||||||
changeSettings = (fieldName, value) => {
|
changeSettings = (fieldName, value) => {
|
||||||
const { onChange } = this.props;
|
const { onChange } = this.props;
|
||||||
|
Loading…
Reference in New Issue
Block a user