mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-06 15:30:27 +03:00
reisolate the individual components that need passed values
This commit is contained in:
parent
cc88733204
commit
99e55b36c6
1 changed files with 60 additions and 56 deletions
|
|
@ -200,8 +200,6 @@ export function PersistentCallContainer({ isVisible }: PersistentCallContainerPr
|
||||||
{/* Pass actual powerLevels if required */}
|
{/* Pass actual powerLevels if required */}
|
||||||
<PowerLevelsContextProvider value={powerLevels}>
|
<PowerLevelsContextProvider value={powerLevels}>
|
||||||
{/* Route/Space specific context providers MUST wrap both Space and Header */}
|
{/* Route/Space specific context providers MUST wrap both Space and Header */}
|
||||||
<RouteSpaceProvider>
|
|
||||||
<SpaceRouteRoomProvider>
|
|
||||||
{/* Main layout container inside providers: Flex Row */}
|
{/* Main layout container inside providers: Flex Row */}
|
||||||
{/* Assuming Box handles flex layout */}
|
{/* Assuming Box handles flex layout */}
|
||||||
<Box direction="Row" grow="Yes" style={{ height: '100%', width: '100%' }}>
|
<Box direction="Row" grow="Yes" style={{ height: '100%', width: '100%' }}>
|
||||||
|
|
@ -215,6 +213,8 @@ export function PersistentCallContainer({ isVisible }: PersistentCallContainerPr
|
||||||
borderRight: '1px solid #ccc',
|
borderRight: '1px solid #ccc',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
<RouteSpaceProvider>
|
||||||
|
<SpaceRouteRoomProvider>
|
||||||
{' '}
|
{' '}
|
||||||
{/* Example style */}
|
{/* Example style */}
|
||||||
{/* PageRoot likely renders the nav prop */}
|
{/* PageRoot likely renders the nav prop */}
|
||||||
|
|
@ -226,6 +226,8 @@ export function PersistentCallContainer({ isVisible }: PersistentCallContainerPr
|
||||||
</MobileFriendlyPageNav>
|
</MobileFriendlyPageNav>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
</SpaceRouteRoomProvider>
|
||||||
|
</RouteSpaceProvider>
|
||||||
</Box>
|
</Box>
|
||||||
{/* --- Right Side (Header + Iframe) --- */}
|
{/* --- Right Side (Header + Iframe) --- */}
|
||||||
{/* This Box takes remaining space and arranges header/iframe vertically */}
|
{/* This Box takes remaining space and arranges header/iframe vertically */}
|
||||||
|
|
@ -239,7 +241,11 @@ export function PersistentCallContainer({ isVisible }: PersistentCallContainerPr
|
||||||
{' '}
|
{' '}
|
||||||
{/* Header doesn't grow/shrink */}
|
{/* Header doesn't grow/shrink */}
|
||||||
{/* RoomViewHeader requires the providers above */}
|
{/* RoomViewHeader requires the providers above */}
|
||||||
|
<RouteSpaceProvider>
|
||||||
|
<SpaceRouteRoomProvider>
|
||||||
<RoomViewHeader />
|
<RoomViewHeader />
|
||||||
|
</SpaceRouteRoomProvider>
|
||||||
|
</RouteSpaceProvider>
|
||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
{/* Iframe Area (takes remaining space) */}
|
{/* Iframe Area (takes remaining space) */}
|
||||||
|
|
@ -267,8 +273,6 @@ export function PersistentCallContainer({ isVisible }: PersistentCallContainerPr
|
||||||
{/* End Right Side Box */}
|
{/* End Right Side Box */}
|
||||||
</Box>{' '}
|
</Box>{' '}
|
||||||
{/* End Main Layout Box (Row) */}
|
{/* End Main Layout Box (Row) */}
|
||||||
</SpaceRouteRoomProvider>
|
|
||||||
</RouteSpaceProvider>
|
|
||||||
</PowerLevelsContextProvider>
|
</PowerLevelsContextProvider>
|
||||||
</div> // End Outer Container Div
|
</div> // End Outer Container Div
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue