mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 02:03:42 -05:00
Merge pull request #16847 from overleaf/td-chat-context-provider-storybook
Add chat context provider to Storybook scope decorator GitOrigin-RevId: 04c95581dfaa4818dc9c9976e854612b4e642101
This commit is contained in:
parent
3a88a60e23
commit
7764fb9139
1 changed files with 7 additions and 3 deletions
|
@ -23,6 +23,7 @@ import { ProjectSettingsProvider } from '@/features/editor-left-menu/context/pro
|
||||||
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'
|
import { UserSettingsProvider } from '@/shared/context/user-settings-context'
|
||||||
import { OutlineProvider } from '@/features/ide-react/context/outline-context'
|
import { OutlineProvider } from '@/features/ide-react/context/outline-context'
|
||||||
|
import { ChatProvider } from '@/features/chat/context/chat-context'
|
||||||
|
|
||||||
const scopeWatchers: [string, (value: any) => void][] = []
|
const scopeWatchers: [string, (value: any) => void][] = []
|
||||||
|
|
||||||
|
@ -242,6 +243,7 @@ export const ScopeDecorator = (
|
||||||
useMeta(meta)
|
useMeta(meta)
|
||||||
|
|
||||||
const Providers = {
|
const Providers = {
|
||||||
|
ChatProvider,
|
||||||
DetachCompileProvider,
|
DetachCompileProvider,
|
||||||
DetachProvider,
|
DetachProvider,
|
||||||
EditorProvider,
|
EditorProvider,
|
||||||
|
@ -273,9 +275,11 @@ export const ScopeDecorator = (
|
||||||
<Providers.LayoutProvider>
|
<Providers.LayoutProvider>
|
||||||
<Providers.LocalCompileProvider>
|
<Providers.LocalCompileProvider>
|
||||||
<Providers.DetachCompileProvider>
|
<Providers.DetachCompileProvider>
|
||||||
<Providers.OutlineProvider>
|
<Providers.ChatProvider>
|
||||||
<Story />
|
<Providers.OutlineProvider>
|
||||||
</Providers.OutlineProvider>
|
<Story />
|
||||||
|
</Providers.OutlineProvider>
|
||||||
|
</Providers.ChatProvider>
|
||||||
</Providers.DetachCompileProvider>
|
</Providers.DetachCompileProvider>
|
||||||
</Providers.LocalCompileProvider>
|
</Providers.LocalCompileProvider>
|
||||||
</Providers.LayoutProvider>
|
</Providers.LayoutProvider>
|
||||||
|
|
Loading…
Reference in a new issue