mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-06 11:59:51 +08:00
fix(storybook): disable onboarding for storybook (#5351)
This commit is contained in:
@@ -107,6 +107,13 @@ const ThemeChange = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
localStorage.clear();
|
localStorage.clear();
|
||||||
|
|
||||||
|
// do not show onboarding for storybook
|
||||||
|
window.localStorage.setItem(
|
||||||
|
'app_config',
|
||||||
|
'{"onBoarding":false, "dismissWorkspaceGuideModal":true}'
|
||||||
|
);
|
||||||
|
|
||||||
const store = createStore();
|
const store = createStore();
|
||||||
_setCurrentStore(store);
|
_setCurrentStore(store);
|
||||||
setup();
|
setup();
|
||||||
|
|||||||
Reference in New Issue
Block a user