From 00ac8f654a985ec73c8bf176c446528f1bfc5a00 Mon Sep 17 00:00:00 2001 From: Gigiaj Date: Fri, 9 May 2025 11:17:46 -0500 Subject: [PATCH] Revert to original code as we've moved the outlet context passing out and made more direct use of the ref --- src/app/components/page/Page.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/app/components/page/Page.tsx b/src/app/components/page/Page.tsx index c243e4b2..55ccecee 100644 --- a/src/app/components/page/Page.tsx +++ b/src/app/components/page/Page.tsx @@ -1,7 +1,6 @@ import React, { ComponentProps, MutableRefObject, ReactNode } from 'react'; import { Box, Header, Line, Scroll, Text, as } from 'folds'; import classNames from 'classnames'; -import { Outlet, useOutletContext } from 'react-router-dom'; import { ContainerColor } from '../../styles/ContainerColor.css'; import * as css from './style.css'; import { ScreenSize, useScreenSizeContext } from '../../hooks/useScreenSize'; @@ -13,7 +12,6 @@ type PageRootProps = { export function PageRoot({ nav, children }: PageRootProps) { const screenSize = useScreenSizeContext(); - const { iframeRef, backupIframeRef } = useOutletContext(); return ( @@ -21,7 +19,7 @@ export function PageRoot({ nav, children }: PageRootProps) { {screenSize !== ScreenSize.Mobile && ( )} - + {children} ); }