Skip to content

Commit

Permalink
hide test Button
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitriy-rudakov committed Jan 20, 2022
1 parent 3c939b8 commit 39b3fc2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
12 changes: 3 additions & 9 deletions admin/js/zutranslate-blocks.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion scripts/admin/plugin-document/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,14 @@ const LangControlSetting = ({
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);

const testButton = false;
return (
<>
<LangControl
lang={ editorLang }
onClick={ setLanguage }
/>
<Button isSecondary onClick={ storeTest }>Test</Button>
{ testButton && <Button isSecondary onClick={ storeTest }>Test</Button> }
</>
);
}
Expand Down

0 comments on commit 39b3fc2

Please sign in to comment.