Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit eaf1a70

Browse files
committed
chore: cleanup storybook canvas
1 parent 889ed08 commit eaf1a70

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

.storybook/components/Canvas.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ import {
4848
CBox,
4949
CIconButton,
5050
CColorModeProvider } from '../../packages/chakra-ui-core/src'
51+
5152
export default {
5253
name: 'Canvas',
5354
components: {

.storybook/config.js

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ import { configure, addDecorator, addParameters } from '@storybook/vue';
22
import Vue from 'vue'
33
import VueLive from 'vue-live'
44
import Lorem from 'vue-lorem-ipsum'
5-
import Chakra, { CThemeProvider, CColorModeProvider, CReset } from '../packages/chakra-ui-core/src'
5+
import Chakra from '../packages/chakra-ui-core/src'
66
import Canvas from './components/Canvas.vue'
7-
import theme from '../packages/chakra-ui-core/src/lib/theme'
87
import storyBookTheme from './theme'
98

109
import {
@@ -75,16 +74,11 @@ addParameters({
7574

7675
addDecorator(() => ({
7776
template: `
78-
<Canvas :theme="theme">
77+
<Canvas>
7978
<story/>
8079
</Canvas>
8180
`,
82-
data() {
83-
return {
84-
theme,
85-
}
86-
},
87-
components: { CThemeProvider, CColorModeProvider, CReset, Canvas }
81+
components: { Canvas }
8882
}));
8983

9084
// For playground

0 commit comments

Comments
 (0)