1
0
Fork 0

🚧 Work on React components and releases

This commit is contained in:
Joost De Cock 2019-04-30 16:20:43 +02:00
parent 10fc688be1
commit 9d54e25020
93 changed files with 1253 additions and 1785 deletions

View file

@ -29,7 +29,7 @@ const PatternOptionBool = props => {
updateValue={update}
labels={props.labels}
/>
)
);
return (
<li>
<OptionPreamble
@ -43,7 +43,7 @@ const PatternOptionBool = props => {
expanded={expanded}
reset={reset}
showHelp={() =>
props.triggerAction("showHelp", {
props.raiseEvent("showHelp", {
type: "draftSetting",
value: props.name
})
@ -55,7 +55,7 @@ const PatternOptionBool = props => {
};
PatternOptionBool.propTypes = {
triggerAction: PropTypes.func.isRequired,
raiseEvent: PropTypes.func.isRequired,
updateValue: PropTypes.func.isRequired,
name: PropTypes.string.isRequired,
dflt: PropTypes.oneOfType([

View file

@ -3,7 +3,7 @@ import { storiesOf } from "@storybook/react";
import Bool from ".";
const props = {
triggerAction: (type, data) =>
raiseEvent: (type, data) =>
console.log(`Action of type ${type} triggered, data passed is`, data),
updateValue: (name, value) =>
console.log(`Updated pct/deg/count option ${name}, value is now: ${value}`),