From c3e4650ad7c723c62a602190406f9023d22ca4ae Mon Sep 17 00:00:00 2001 From: Sorrel Bri Date: Fri, 29 Nov 2019 23:37:32 -0800 Subject: [PATCH] stub run changes function for form submit --- src/PhonoChangeApplier.js | 7 ++++++- src/components/Options.js | 5 +++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/PhonoChangeApplier.js b/src/PhonoChangeApplier.js index 45a520e..30ee314 100644 --- a/src/PhonoChangeApplier.js +++ b/src/PhonoChangeApplier.js @@ -13,13 +13,18 @@ const PhonoChangeApplier = () => { ); const [ epochs, setEpochs ] = useState([{name: 'epoch 1', changes:['[+ feature]>[- feature]/_#']}]); const [ options, setOptions ] = useState({output: 'default', save: false}) + + const runChanges = e => { + e.preventDefault(); + console.log('running...') + } return (
- +
); } diff --git a/src/components/Options.js b/src/components/Options.js index 445bc1b..a7f5263 100644 --- a/src/components/Options.js +++ b/src/components/Options.js @@ -15,7 +15,8 @@ const Options = props => { return (

Modeling Options

-
{}} data-testid="Options-form"> + + props.runChanges(e)} data-testid="Options-form"> {/*
Output
*/} @@ -53,7 +54,7 @@ const Options = props => { /> - +