💄 Markup changes due to upgrade to react-intl v3
This commit is contained in:
parent
2e6ee123c1
commit
d9e74ee37f
1 changed files with 20 additions and 20 deletions
|
@ -1,52 +1,52 @@
|
|||
import React, { useState } from "react";
|
||||
import PropTypes from "prop-types";
|
||||
import { FormattedMessage } from "react-intl";
|
||||
import PatternOptions from "./PatternOptions";
|
||||
import DraftSettings from "./DraftSettings";
|
||||
import React, { useState } from 'react'
|
||||
import PropTypes from 'prop-types'
|
||||
import { FormattedMessage } from 'react-intl'
|
||||
import PatternOptions from './PatternOptions'
|
||||
import DraftSettings from './DraftSettings'
|
||||
|
||||
const DraftConfigurator = props => {
|
||||
const [expanded, setExpanded] = useState([]);
|
||||
const [expanded, setExpanded] = useState([])
|
||||
|
||||
return (
|
||||
<ul className="config l1">
|
||||
<li>
|
||||
<FormattedMessage id="app.patternOptions" />
|
||||
<span>
|
||||
<FormattedMessage id="app.patternOptions" />
|
||||
</span>
|
||||
<PatternOptions
|
||||
noDocs={props.noDocs}
|
||||
config={props.config}
|
||||
gist={props.gist}
|
||||
recipe={props.recipe}
|
||||
updateValue={(name, value) =>
|
||||
props.updateGist(value, "settings", "options", name)
|
||||
}
|
||||
updateValue={(name, value) => props.updateGist(value, 'settings', 'options', name)}
|
||||
raiseEvent={props.raiseEvent}
|
||||
units={props.units}
|
||||
/>
|
||||
</li>
|
||||
<li>
|
||||
<FormattedMessage id="app.draftSettings" />
|
||||
<span>
|
||||
<FormattedMessage id="app.draftSettings" />
|
||||
</span>
|
||||
<DraftSettings
|
||||
noDocs={props.noDocs}
|
||||
config={props.config}
|
||||
gist={props.gist}
|
||||
recipe={props.recipe}
|
||||
updateValue={(name, value) =>
|
||||
props.updateGist(value, "settings", name)
|
||||
}
|
||||
updateValue={(name, value) => props.updateGist(value, 'settings', name)}
|
||||
raiseEvent={props.raiseEvent}
|
||||
units={props.units}
|
||||
/>
|
||||
</li>
|
||||
</ul>
|
||||
);
|
||||
};
|
||||
)
|
||||
}
|
||||
|
||||
DraftConfigurator.propTypes = {
|
||||
units: PropTypes.oneOf(["metric", "imperial"]).isRequired
|
||||
};
|
||||
units: PropTypes.oneOf(['metric', 'imperial']).isRequired
|
||||
}
|
||||
|
||||
DraftConfigurator.defaultProps = {
|
||||
noDocs: false
|
||||
};
|
||||
}
|
||||
|
||||
export default DraftConfigurator;
|
||||
export default DraftConfigurator
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue