🚧 Work on React components and releases
This commit is contained in:
parent
10fc688be1
commit
9d54e25020
93 changed files with 1253 additions and 1785 deletions
|
@ -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([
|
||||
|
|
|
@ -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}`),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue