fix: add platform selector to storybook (#4380)

This commit is contained in:
Peng Xiao authored and GitHub committed 2023-09-15 08:59:29 +00:00
1 parent f730f2b242
commit eea38a08c5
12 files changed
+81 -26

No files matched your search

+6
View File
@@ -47,6 +47,12 @@ const createPattern = packageName => [
message: 'Do not use this API because it has a bug',
importNames: ['mergeUpdates'],
},
{
group: ['@affine/env/constant'],
message:
'Do not import from @affine/env/constant. Use `environment.isDesktop` instead',
importNames: ['isDesktop'],
},
];
const allPackages = [