Merge pull request #16138 from overleaf/ii-ide-page-prototype-review-panel-overview-loading

[web] React ide page overview switch

GitOrigin-RevId: 9a24a8ba9ed8e86d486a12a65259d25c1352c864
This commit is contained in:
ilkin-overleaf
2023-12-08 09:04:19 +00:00
committed by Copybot
parent ffb24e061e
commit c3689ca6f3
5 changed files with 60 additions and 17 deletions
@@ -9,7 +9,7 @@ import { useFileTreeData } from '@/shared/context/file-tree-data-context'
import { MainDocument } from '../../../../../../types/project-settings'
function OverviewContainer() {
const { loading } = useReviewPanelValueContext()
const { isOverviewLoading } = useReviewPanelValueContext()
const docs: MainDocument[] = useFileTreeData().docs
return (
@@ -23,7 +23,7 @@ function OverviewContainer() {
tabIndex={0}
aria-labelledby="review-panel-tab-overview"
>
{loading ? (
{isOverviewLoading ? (
<div className="rp-loading">
<Icon type="spinner" spin />
</div>