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:
ilkin-overleaf 2023-11-16 13:56:35 +02:00 committed by Copybot
parent 453edbfe0a
commit 71a78c8edd
2 changed files with 2 additions and 4 deletions

View file

@ -52,9 +52,8 @@ function useReviewPanelState(): ReviewPanelStateReactIde {
>('editor.wantTrackChanges')
const [openDocId] =
useScopeValue<ReviewPanel.Value<'openDocId'>>('editor.open_doc_id')
const [shouldCollapse, setShouldCollapse] = useScopeValue<
ReviewPanel.Value<'shouldCollapse'>
>('reviewPanel.fullTCStateCollapsed')
const [shouldCollapse, setShouldCollapse] =
useState<ReviewPanel.Value<'shouldCollapse'>>(true)
const [lineHeight] = useScopeValue<number>(
'reviewPanel.rendererData.lineHeight'
)

View file

@ -16,7 +16,6 @@ export default function populateReviewPanelScope(store: ReactScopeValueStore) {
})
store.set('users', {})
store.set('reviewPanel.resolvedComments', {})
store.set('reviewPanel.fullTCStateCollapsed', true)
store.set('reviewPanel.rendererData.lineHeight', 0)
store.set('reviewPanel.trackChangesState', {})
store.set('reviewPanel.trackChangesOnForEveryone', false)