Skip to content

Commit

Permalink
fix: pass missing dependencies to the openInCodeSandbox handler
Browse files Browse the repository at this point in the history
  • Loading branch information
cheton committed Aug 7, 2023
1 parent 8cf3465 commit 13337ee
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/react-docs/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down

0 comments on commit 13337ee

Please sign in to comment.