From 13337eeace5d0eb9e1bedf613b67478448f45cfc Mon Sep 17 00:00:00 2001 From: cheton Date: Mon, 7 Aug 2023 21:42:31 +0800 Subject: [PATCH] fix: pass missing dependencies to the `openInCodeSandbox` handler --- packages/react-docs/pages/index.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/react-docs/pages/index.js b/packages/react-docs/pages/index.js index 6dad8f3be0..ac1fd63c8c 100644 --- a/packages/react-docs/pages/index.js +++ b/packages/react-docs/pages/index.js @@ -395,7 +395,13 @@ const DefaultPageHeader = forwardRef((props, ref) => { }, [portal, track]); const handleClickOpenInCodeSandbox = () => { - openInCodeSandbox({ title: 'Tonic UI' }); + openInCodeSandbox({ + title: 'Tonic UI', + dependencies: { + '@emotion/react': 'latest', + '@tonic-ui/react': 'latest', + }, + }); }; useEffect(() => {