mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Add UserSettingsProvider to Storybook ScopeDecorator (#16054)
GitOrigin-RevId: 13dbb81ca78880a59dba2a3b8eeb1465850dd1ce
This commit is contained in:
parent
0f793975d2
commit
8227db9e32
1 changed files with 23 additions and 19 deletions
|
@ -21,6 +21,7 @@ import { LocalCompileProvider } from '@/shared/context/local-compile-context'
|
||||||
import { DetachCompileProvider } from '@/shared/context/detach-compile-context'
|
import { DetachCompileProvider } from '@/shared/context/detach-compile-context'
|
||||||
import { ProjectSettingsProvider } from '@/features/editor-left-menu/context/project-settings-context'
|
import { ProjectSettingsProvider } from '@/features/editor-left-menu/context/project-settings-context'
|
||||||
import { FileTreePathProvider } from '@/features/file-tree/contexts/file-tree-path'
|
import { FileTreePathProvider } from '@/features/file-tree/contexts/file-tree-path'
|
||||||
|
import { UserSettingsProvider } from '@/shared/context/user-settings-context'
|
||||||
|
|
||||||
const scopeWatchers: [string, (value: any) => void][] = []
|
const scopeWatchers: [string, (value: any) => void][] = []
|
||||||
|
|
||||||
|
@ -247,6 +248,7 @@ export const ScopeDecorator = (
|
||||||
ProjectSettingsProvider,
|
ProjectSettingsProvider,
|
||||||
SplitTestProvider,
|
SplitTestProvider,
|
||||||
UserProvider,
|
UserProvider,
|
||||||
|
UserSettingsProvider,
|
||||||
...opts.providers,
|
...opts.providers,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -254,25 +256,27 @@ export const ScopeDecorator = (
|
||||||
<Providers.SplitTestProvider>
|
<Providers.SplitTestProvider>
|
||||||
<Providers.IdeAngularProvider ide={ide}>
|
<Providers.IdeAngularProvider ide={ide}>
|
||||||
<Providers.UserProvider>
|
<Providers.UserProvider>
|
||||||
<Providers.ProjectProvider>
|
<Providers.UserSettingsProvider>
|
||||||
<Providers.FileTreeDataProvider>
|
<Providers.ProjectProvider>
|
||||||
<Providers.FileTreePathProvider>
|
<Providers.FileTreeDataProvider>
|
||||||
<Providers.DetachProvider>
|
<Providers.FileTreePathProvider>
|
||||||
<Providers.EditorProvider>
|
<Providers.DetachProvider>
|
||||||
<Providers.ProjectSettingsProvider>
|
<Providers.EditorProvider>
|
||||||
<Providers.LayoutProvider>
|
<Providers.ProjectSettingsProvider>
|
||||||
<Providers.LocalCompileProvider>
|
<Providers.LayoutProvider>
|
||||||
<Providers.DetachCompileProvider>
|
<Providers.LocalCompileProvider>
|
||||||
<Story />
|
<Providers.DetachCompileProvider>
|
||||||
</Providers.DetachCompileProvider>
|
<Story />
|
||||||
</Providers.LocalCompileProvider>
|
</Providers.DetachCompileProvider>
|
||||||
</Providers.LayoutProvider>
|
</Providers.LocalCompileProvider>
|
||||||
</Providers.ProjectSettingsProvider>
|
</Providers.LayoutProvider>
|
||||||
</Providers.EditorProvider>
|
</Providers.ProjectSettingsProvider>
|
||||||
</Providers.DetachProvider>
|
</Providers.EditorProvider>
|
||||||
</Providers.FileTreePathProvider>
|
</Providers.DetachProvider>
|
||||||
</Providers.FileTreeDataProvider>
|
</Providers.FileTreePathProvider>
|
||||||
</Providers.ProjectProvider>
|
</Providers.FileTreeDataProvider>
|
||||||
|
</Providers.ProjectProvider>
|
||||||
|
</Providers.UserSettingsProvider>
|
||||||
</Providers.UserProvider>
|
</Providers.UserProvider>
|
||||||
</Providers.IdeAngularProvider>
|
</Providers.IdeAngularProvider>
|
||||||
</Providers.SplitTestProvider>
|
</Providers.SplitTestProvider>
|
||||||
|
|
Loading…
Reference in a new issue