diff --git a/src/app/components/CallEmbedProvider.tsx b/src/app/components/CallEmbedProvider.tsx index a6ea82939..18e065afc 100644 --- a/src/app/components/CallEmbedProvider.tsx +++ b/src/app/components/CallEmbedProvider.tsx @@ -9,6 +9,7 @@ import { config, Dialog, Icon, + IconButton, Icons, Overlay, OverlayBackdrop, @@ -51,6 +52,7 @@ import { mxcUrlToHttp, getMxIdLocalPart } from '../utils/matrix'; import { RoomAvatar, RoomIcon } from './room-avatar'; import { useRoomNavigate } from '../hooks/useRoomNavigate'; import { getChatBg } from '../features/lotus/chatBackground'; +import { ExitFullscreenIcon, FullscreenIcon } from '../features/call/Controls'; import { useTheme, ThemeKind } from '../hooks/useTheme'; import { useSetting } from '../state/hooks/settings'; import { settingsAtom } from '../state/settings'; @@ -1095,10 +1097,13 @@ export function CallEmbedProvider({ children }: CallEmbedProviderProps) { >
{document.fullscreenEnabled && ( - + {pipIsFullscreen ? : } + )}
( +export const FullscreenIcon = () => ( ); -const ExitFullscreenIcon = () => ( +export const ExitFullscreenIcon = () => ( diff --git a/src/app/pages/RouteError.tsx b/src/app/pages/RouteError.tsx index 149711e55..360253c0a 100644 --- a/src/app/pages/RouteError.tsx +++ b/src/app/pages/RouteError.tsx @@ -1,5 +1,6 @@ import React from 'react'; import { useRouteError, isRouteErrorResponse } from 'react-router-dom'; +import { Box, Button, config, Text, toRem } from 'folds'; export function RouteError() { const error = useRouteError(); @@ -11,33 +12,22 @@ export function RouteError() { : 'An unexpected error occurred.'; return ( -
-

Something went wrong

-

{message}

- -
+ Something went wrong + + {message} + + + ); }