mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-24 05:11:49 +00:00
Merge pull request #16141 from overleaf/mj-review-panel-storybook-fix
[storybook] Stub review panel data to get storybook to load GitOrigin-RevId: 2a270f6962132e3ffe09af8d6c5809f862b5fbe9
This commit is contained in:
parent
bcd434ce0c
commit
da606cd9b8
1 changed files with 19 additions and 0 deletions
|
@ -54,6 +54,17 @@ const settings = {
|
|||
syntaxValidation: false,
|
||||
}
|
||||
|
||||
const reviewPanel = {
|
||||
resolvedComments: {},
|
||||
formattedProjectMembers: {},
|
||||
overview: { docsCollapsedState: { 'story-doc': false } },
|
||||
entries: {},
|
||||
}
|
||||
|
||||
const permissions = {
|
||||
write: true,
|
||||
}
|
||||
|
||||
export const Latex = (args: any, { globals: { theme } }: any) => {
|
||||
useScope({
|
||||
editor: {
|
||||
|
@ -87,6 +98,8 @@ export const Latex = (args: any, { globals: { theme } }: any) => {
|
|||
...settings,
|
||||
overallTheme: theme === 'default-' ? '' : theme,
|
||||
},
|
||||
permissions,
|
||||
reviewPanel,
|
||||
})
|
||||
|
||||
useMeta({
|
||||
|
@ -106,6 +119,8 @@ export const Markdown = (args: any, { globals: { theme } }: any) => {
|
|||
...settings,
|
||||
overallTheme: theme === 'default-' ? '' : theme,
|
||||
},
|
||||
permissions,
|
||||
reviewPanel,
|
||||
})
|
||||
|
||||
return <SourceEditor />
|
||||
|
@ -122,6 +137,8 @@ export const Visual = (args: any, { globals: { theme } }: any) => {
|
|||
...settings,
|
||||
overallTheme: theme === 'default-' ? '' : theme,
|
||||
},
|
||||
permissions,
|
||||
reviewPanel,
|
||||
})
|
||||
useMeta({
|
||||
'ol-showSymbolPalette': true,
|
||||
|
@ -143,6 +160,8 @@ export const Bibtex = (args: any, { globals: { theme } }: any) => {
|
|||
...settings,
|
||||
overallTheme: theme === 'default-' ? '' : theme,
|
||||
},
|
||||
permissions,
|
||||
reviewPanel,
|
||||
})
|
||||
|
||||
return <SourceEditor />
|
||||
|
|
Loading…
Reference in a new issue