Cleanup error/loading screens

This commit is contained in:
Robert Long
2021-12-10 16:42:18 -08:00
parent aa988e9f4a
commit 940706bed0
12 changed files with 77 additions and 530 deletions

View File

@@ -31,7 +31,7 @@ import { Room } from "./Room";
import { ClientProvider } from "./ConferenceCallManagerHooks";
import { useFocusVisible } from "@react-aria/interactions";
import styles from "./App.module.css";
import { ErrorModal } from "./ErrorModal";
import { ErrorView, LoadingView } from "./FullScreenView";
const SentryRoute = Sentry.withSentryRouting(Route);
@@ -129,8 +129,8 @@ function RoomRedirect() {
}, [history, pathname]);
if (error) {
return <ErrorModal error={error} />;
return <ErrorView error={error} />;
}
return <div>Loading...</div>;
return <LoadingView />;
}