rename var

This commit is contained in:
casperlamboo 2017-11-13 15:41:11 +01:00
parent aa339fda3a
commit 3221278853
2 changed files with 3 additions and 3 deletions

View File

@ -29,7 +29,7 @@ class Settings extends React.Component {
let state; let state;
switch (fieldName) { switch (fieldName) {
case 'printers': case 'printer':
case 'quality': case 'quality':
case 'material': case 'material':
state = { state = {
@ -57,7 +57,7 @@ class Settings extends React.Component {
<Tabs> <Tabs>
<Tab label="basic"> <Tab label="basic">
<div> <div>
<SelectField name="printers" floatingLabelText="Printer" fullWidth> <SelectField name="printer" floatingLabelText="Printer" fullWidth>
{Object.entries(printers).map(([value, { title }]) => ( {Object.entries(printers).map(([value, { title }]) => (
<MenuItem key={value} value={value} primaryText={title} /> <MenuItem key={value} value={value} primaryText={title} />
))} ))}

View File

@ -69,7 +69,7 @@ class Interface extends React.Component {
controlMode: 'translate', controlMode: 'translate',
isSlicing: false, isSlicing: false,
sliced: false, sliced: false,
printers: defaultPrinter, printer: defaultPrinter,
quality: defaultQuality, quality: defaultQuality,
material: defaultMaterial, material: defaultMaterial,
settings: _.merge( settings: _.merge(