Skip to content

Commit c842223

Browse files
committed
fix(storybook): show Code panel by default when opening a story
1 parent 7aa3b8a commit c842223

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

.storybook/manager.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ addons.setConfig({
55
theme: create({
66
base: 'dark',
77
}),
8+
selectedPanel: 'storybook/docs/panel',
89
})

.storybook/preview.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ const preview: Preview = {
1717
docs: {
1818
theme: themes.dark,
1919
codePanel: true,
20-
canvas: {
21-
sourceState: 'shown',
22-
},
2320
},
2421
actions: { disable: true },
2522
interactions: { disable: true },

0 commit comments

Comments
 (0)