From 653cf0e93a19a4a3214c058269b3c9a8b77faa46 Mon Sep 17 00:00:00 2001 From: Danilo Woznica Date: Thu, 25 Aug 2022 09:11:32 +0100 Subject: [PATCH] fix(UnstyledOpenInCodeSandboxButton): set visibility to hidden (#560) --- .../UnstyledOpenInCodeSandboxButton.tsx | 8 +++++++- sandpack-react/src/presets/CustomSandpack.stories.tsx | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/sandpack-react/src/common/OpenInCodeSandboxButton/UnstyledOpenInCodeSandboxButton.tsx b/sandpack-react/src/common/OpenInCodeSandboxButton/UnstyledOpenInCodeSandboxButton.tsx index 6e1c14fd2..814c13200 100644 --- a/sandpack-react/src/common/OpenInCodeSandboxButton/UnstyledOpenInCodeSandboxButton.tsx +++ b/sandpack-react/src/common/OpenInCodeSandboxButton/UnstyledOpenInCodeSandboxButton.tsx @@ -96,7 +96,13 @@ export const UnstyledOpenInCodeSandboxButton: React.FC< title="Open in CodeSandbox" {...props} > -
+ {Array.from( paramsValues as unknown as Array<[string, string]>, ([key, value]) => ( diff --git a/sandpack-react/src/presets/CustomSandpack.stories.tsx b/sandpack-react/src/presets/CustomSandpack.stories.tsx index 9eb000ae0..0f7f12dbf 100644 --- a/sandpack-react/src/presets/CustomSandpack.stories.tsx +++ b/sandpack-react/src/presets/CustomSandpack.stories.tsx @@ -447,4 +447,4 @@ export default function App() { }} template="react" /> -); \ No newline at end of file +);