Skip to content

Commit

Permalink
refactor: simplify message display logic in InputDateShowHideMsg comp…
Browse files Browse the repository at this point in the history
…onent for improved clarity

Refs: #6977
  • Loading branch information
deleonio committed Nov 26, 2024
1 parent cf4dc4f commit 430701d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const InputDateShowHideMsg = () => {
<KolInputCheckbox _label="Toggle Hide Msg" _on={onHideMsg} _checked={hideMsg} _variant="button" />
</div>
<pre>
Message exists: {showMsg && isTouched ? 'Yes' : 'No'} (showMsg: {showMsg ? 'Yes' : 'No'}, isTouched: {isTouched ? 'Yes' : 'No'})<br />
Message exists: {showMsg ? 'Yes' : 'No'} (showMsg: {showMsg ? 'Yes' : 'No'})<br />
Non-Error-Message visible: {showMsg && !hideMsg ? 'Yes' : 'No'} (showMsg: {showMsg ? 'Yes' : 'No'}, hideMsg: {hideMsg ? 'Yes' : 'No'})<br />
Error-Message visible: {showMsg && isTouched && !hideMsg ? 'Yes' : 'No'} (showMsg: {showMsg ? 'Yes' : 'No'}, isTouched: {isTouched ? 'Yes' : 'No'},
hideMsg: {hideMsg ? 'Yes' : 'No'})
Expand Down

0 comments on commit 430701d

Please sign in to comment.