mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-13 18:50:29 +03:00
funnel through just iframe for now for testing sake
This commit is contained in:
parent
1bd593b530
commit
8b50ac150b
1 changed files with 3 additions and 1 deletions
|
|
@ -4,6 +4,7 @@ import classNames from 'classnames';
|
|||
import { ContainerColor } from '../../styles/ContainerColor.css';
|
||||
import * as css from './style.css';
|
||||
import { ScreenSize, useScreenSizeContext } from '../../hooks/useScreenSize';
|
||||
import { Outlet, useOutletContext } from 'react-router-dom';
|
||||
|
||||
type PageRootProps = {
|
||||
nav: ReactNode;
|
||||
|
|
@ -12,6 +13,7 @@ type PageRootProps = {
|
|||
|
||||
export function PageRoot({ nav, children }: PageRootProps) {
|
||||
const screenSize = useScreenSizeContext();
|
||||
const { iframeRef } = useOutletContext();
|
||||
|
||||
return (
|
||||
<Box grow="Yes" className={ContainerColor({ variant: 'Background' })}>
|
||||
|
|
@ -19,7 +21,7 @@ export function PageRoot({ nav, children }: PageRootProps) {
|
|||
{screenSize !== ScreenSize.Mobile && (
|
||||
<Line variant="Background" size="300" direction="Vertical" />
|
||||
)}
|
||||
{children}
|
||||
<Outlet context={{ iframeRef }} />
|
||||
</Box>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue