mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -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 { UserSettingsProvider } from '@/shared/context/user-settings-context'
|
||||
import { OutlineProvider } from '@/features/ide-react/context/outline-context'
|
||||
import { ChatProvider } from '@/features/chat/context/chat-context'
|
||||
|
||||
const scopeWatchers: [string, (value: any) => void][] = []
|
||||
|
||||
|
@ -242,6 +243,7 @@ export const ScopeDecorator = (
|
|||
useMeta(meta)
|
||||
|
||||
const Providers = {
|
||||
ChatProvider,
|
||||
DetachCompileProvider,
|
||||
DetachProvider,
|
||||
EditorProvider,
|
||||
|
@ -273,9 +275,11 @@ export const ScopeDecorator = (
|
|||
<Providers.LayoutProvider>
|
||||
<Providers.LocalCompileProvider>
|
||||
<Providers.DetachCompileProvider>
|
||||
<Providers.OutlineProvider>
|
||||
<Story />
|
||||
</Providers.OutlineProvider>
|
||||
<Providers.ChatProvider>
|
||||
<Providers.OutlineProvider>
|
||||
<Story />
|
||||
</Providers.OutlineProvider>
|
||||
</Providers.ChatProvider>
|
||||
</Providers.DetachCompileProvider>
|
||||
</Providers.LocalCompileProvider>
|
||||
</Providers.LayoutProvider>
|
||||
|
|
Loading…
Reference in a new issue