Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
batchmode committed Jan 9, 2024
2 parents 0b87cf0 + 28ee137 commit 4a5dd19
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/client/dev/CreateRecipe.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,14 @@ export const CreateRecipe = ({model}) => {
}
}

const onClear = () => {
setIdValue("")
setNameValue("")
setInputs([])
setOutputs([])
setIcon([])
}

const productSelectionConfig = [
{
title: 'Products',
Expand Down Expand Up @@ -152,6 +160,7 @@ export const CreateRecipe = ({model}) => {
{inputSelection}
{outputSelection}
{iconSelection}
<Button label={"Clear"} onClick={onClear}/>
</div>
<div className="relative flex-1 border-[1px]">
<textarea id="w3review" name="w3review"
Expand Down

0 comments on commit 4a5dd19

Please sign in to comment.