From 450d99f06e5929eb1679e6203284e4faa44e19b0 Mon Sep 17 00:00:00 2001 From: Saad Jutt Date: Wed, 5 Jan 2022 17:41:17 +0500 Subject: [PATCH] fix(web): sticky tabs on Studio + extra run code button removed --- web/src/containers/Studio/index.tsx | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/web/src/containers/Studio/index.tsx b/web/src/containers/Studio/index.tsx index 23d6147..7174d2e 100644 --- a/web/src/containers/Studio/index.tsx +++ b/web/src/containers/Studio/index.tsx @@ -40,9 +40,7 @@ const Studio = () => { return selection ?? '' } - const handleRunSelectionBtnClick = () => runCode(getSelection()) - - const handleRunBtnClick = () => runCode(fileContent) + const handleRunBtnClick = () => runCode(getSelection() || fileContent) const runCode = (code: string) => { axios @@ -102,7 +100,13 @@ const Studio = () => {
- + @@ -114,6 +118,7 @@ const Studio = () => { { - -
+
-
+