Changed Clear button to Reset

This commit is contained in:
TzeYiing authored and Ziinc committed 2022-03-16 12:02:06 +01:00
1 parent f786cb6ead
commit c00e4b47c0
1 file changed
+9 -11
@@ -282,17 +282,15 @@ export const LogPage: NextPage = () => {
/>
)}
<div className="flex flex-row gap-x-2 justify-end p-2">
{editorValue && (
<Button
type="text"
onClick={() => {
setEditorValue('')
setEditorId(uuidv4())
}}
>
Clear
</Button>
)}
<Button
type="text"
onClick={() => {
setEditorValue(genDefaultQuery(table))
setEditorId(uuidv4())
}}
>
Reset
</Button>
<Button type={editorValue ? 'secondary' : 'text'} onClick={handleEditorSubmit}>
Run
</Button>