mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 06:33:55 +01: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:
committed by
Copybot
parent
bcd434ce0c
commit
da606cd9b8
@@ -54,6 +54,17 @@ const settings = {
|
|||||||
syntaxValidation: false,
|
syntaxValidation: false,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const reviewPanel = {
|
||||||
|
resolvedComments: {},
|
||||||
|
formattedProjectMembers: {},
|
||||||
|
overview: { docsCollapsedState: { 'story-doc': false } },
|
||||||
|
entries: {},
|
||||||
|
}
|
||||||
|
|
||||||
|
const permissions = {
|
||||||
|
write: true,
|
||||||
|
}
|
||||||
|
|
||||||
export const Latex = (args: any, { globals: { theme } }: any) => {
|
export const Latex = (args: any, { globals: { theme } }: any) => {
|
||||||
useScope({
|
useScope({
|
||||||
editor: {
|
editor: {
|
||||||
@@ -87,6 +98,8 @@ export const Latex = (args: any, { globals: { theme } }: any) => {
|
|||||||
...settings,
|
...settings,
|
||||||
overallTheme: theme === 'default-' ? '' : theme,
|
overallTheme: theme === 'default-' ? '' : theme,
|
||||||
},
|
},
|
||||||
|
permissions,
|
||||||
|
reviewPanel,
|
||||||
})
|
})
|
||||||
|
|
||||||
useMeta({
|
useMeta({
|
||||||
@@ -106,6 +119,8 @@ export const Markdown = (args: any, { globals: { theme } }: any) => {
|
|||||||
...settings,
|
...settings,
|
||||||
overallTheme: theme === 'default-' ? '' : theme,
|
overallTheme: theme === 'default-' ? '' : theme,
|
||||||
},
|
},
|
||||||
|
permissions,
|
||||||
|
reviewPanel,
|
||||||
})
|
})
|
||||||
|
|
||||||
return <SourceEditor />
|
return <SourceEditor />
|
||||||
@@ -122,6 +137,8 @@ export const Visual = (args: any, { globals: { theme } }: any) => {
|
|||||||
...settings,
|
...settings,
|
||||||
overallTheme: theme === 'default-' ? '' : theme,
|
overallTheme: theme === 'default-' ? '' : theme,
|
||||||
},
|
},
|
||||||
|
permissions,
|
||||||
|
reviewPanel,
|
||||||
})
|
})
|
||||||
useMeta({
|
useMeta({
|
||||||
'ol-showSymbolPalette': true,
|
'ol-showSymbolPalette': true,
|
||||||
@@ -143,6 +160,8 @@ export const Bibtex = (args: any, { globals: { theme } }: any) => {
|
|||||||
...settings,
|
...settings,
|
||||||
overallTheme: theme === 'default-' ? '' : theme,
|
overallTheme: theme === 'default-' ? '' : theme,
|
||||||
},
|
},
|
||||||
|
permissions,
|
||||||
|
reviewPanel,
|
||||||
})
|
})
|
||||||
|
|
||||||
return <SourceEditor />
|
return <SourceEditor />
|
||||||
|
|||||||
Reference in New Issue
Block a user