mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #15784 from overleaf/ii-ide-page-prototype-review-panel-tc-upgrade-modal
[web] Review panel upgrade modal for React IDE page GitOrigin-RevId: 2ef503427d796d4683581899800462c45b550d36
This commit is contained in:
parent
453edbfe0a
commit
71a78c8edd
2 changed files with 2 additions and 4 deletions
|
@ -52,9 +52,8 @@ function useReviewPanelState(): ReviewPanelStateReactIde {
|
||||||
>('editor.wantTrackChanges')
|
>('editor.wantTrackChanges')
|
||||||
const [openDocId] =
|
const [openDocId] =
|
||||||
useScopeValue<ReviewPanel.Value<'openDocId'>>('editor.open_doc_id')
|
useScopeValue<ReviewPanel.Value<'openDocId'>>('editor.open_doc_id')
|
||||||
const [shouldCollapse, setShouldCollapse] = useScopeValue<
|
const [shouldCollapse, setShouldCollapse] =
|
||||||
ReviewPanel.Value<'shouldCollapse'>
|
useState<ReviewPanel.Value<'shouldCollapse'>>(true)
|
||||||
>('reviewPanel.fullTCStateCollapsed')
|
|
||||||
const [lineHeight] = useScopeValue<number>(
|
const [lineHeight] = useScopeValue<number>(
|
||||||
'reviewPanel.rendererData.lineHeight'
|
'reviewPanel.rendererData.lineHeight'
|
||||||
)
|
)
|
||||||
|
|
|
@ -16,7 +16,6 @@ export default function populateReviewPanelScope(store: ReactScopeValueStore) {
|
||||||
})
|
})
|
||||||
store.set('users', {})
|
store.set('users', {})
|
||||||
store.set('reviewPanel.resolvedComments', {})
|
store.set('reviewPanel.resolvedComments', {})
|
||||||
store.set('reviewPanel.fullTCStateCollapsed', true)
|
|
||||||
store.set('reviewPanel.rendererData.lineHeight', 0)
|
store.set('reviewPanel.rendererData.lineHeight', 0)
|
||||||
store.set('reviewPanel.trackChangesState', {})
|
store.set('reviewPanel.trackChangesState', {})
|
||||||
store.set('reviewPanel.trackChangesOnForEveryone', false)
|
store.set('reviewPanel.trackChangesOnForEveryone', false)
|
||||||
|
|
Loading…
Reference in a new issue