From 587ec5b59a928fbd0cc00cc47652048298aa312a Mon Sep 17 00:00:00 2001 From: Miroslav Petrik Date: Sat, 9 Mar 2024 17:49:38 +0100 Subject: [PATCH] docs: disable `show code` button (#119) It crashes the page, as some theme variables are not usable. It was not usable anyway, as it displayed processed storybook code, not practically usable. --- .storybook/preview.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.storybook/preview.tsx b/.storybook/preview.tsx index 56b1729..2094c0d 100644 --- a/.storybook/preview.tsx +++ b/.storybook/preview.tsx @@ -26,6 +26,9 @@ export default { }, }, docs: { + canvas: { + sourceState: "none", + }, theme: darkTheme, container: PicoContainer, components: {