forked from github/cinny
reisolate the individual components that need passed values
This commit is contained in:
@@ -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
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user