From 2ca9004f41cbc79157400f02eb650bd41c73f500 Mon Sep 17 00:00:00 2001 From: Wesley B Date: Thu, 17 Oct 2019 14:11:09 -0500 Subject: [PATCH] Noop: Add back-references to new issue #13 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/…/issues/13 --- src/plain/components/card.js | 1 + src/react/components/AttributeInput.js | 1 + 2 files changed, 2 insertions(+) diff --git a/src/plain/components/card.js b/src/plain/components/card.js index c30a865..a0e97d1 100644 --- a/src/plain/components/card.js +++ b/src/plain/components/card.js @@ -60,6 +60,7 @@ function updateOutputs( input ) { `) ]; outputs.forEach( ( output ) => { + // 13: Determine and evaluate type of value const value = input.value; // RFE: Format value via a function setValue( value, output ); assignClassFromValue( value, output ); diff --git a/src/react/components/AttributeInput.js b/src/react/components/AttributeInput.js index 10d30ee..ac8ae63 100644 --- a/src/react/components/AttributeInput.js +++ b/src/react/components/AttributeInput.js @@ -48,6 +48,7 @@ function AttributeInput( props ) { } React.useEffect(() => { if ( onChange ) onChange( value ); + // 13: Determine and evaluate type of value setSignClassName( ( value > 0 ) ? CLASSNAMES.pos : CLASSNAMES.neg ); }, [ value ]);