From b07a608ee5eec2a1461c47dcad296d11ecd58f6a Mon Sep 17 00:00:00 2001 From: Aniket-Engg Date: Fri, 30 Sep 2022 12:48:21 +0530 Subject: [PATCH] reset workspace options --- .../workspace/src/lib/remix-ui-workspace.tsx | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx b/libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx index ef4ac18ad0..2ed762f877 100644 --- a/libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx +++ b/libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx @@ -18,6 +18,9 @@ export function Workspace () { const displayOzCustomRef = useRef() const ozFeatures = useRef({mintable: false, burnable: false, pausable: false}) const upgradeable = useRef() + const mintableCheckboxRef = useRef() + const burnableCheckboxRef = useRef() + const pausableCheckboxRef = useRef() const global = useContext(FileSystemContext) const workspaceRenameInput = useRef() const workspaceCreateInput = useRef() @@ -157,6 +160,12 @@ export function Workspace () { displayOzCustomRef.current.style.display = 'block' upgradeable.current = undefined ozFeatures.current = {mintable: false, burnable: false, pausable: false} + // @ts-ignore + mintableCheckboxRef.current.checked = false + // @ts-ignore + burnableCheckboxRef.current.checked = false + // @ts-ignore + pausableCheckboxRef.current.checked = false } else displayOzCustomRef.current.style.display = 'none' // @ts-ignore @@ -212,17 +221,17 @@ export function Workspace () { -
handleFeatures(e)}> +
- + handleFeatures(e)} ref={mintableCheckboxRef} />
- + handleFeatures(e)} ref={burnableCheckboxRef} />
- + handleFeatures(e)} ref={pausableCheckboxRef} />