WIP
This commit is contained in:
parent
e5c28569c6
commit
9d0162e475
11 changed files with 456 additions and 194 deletions
|
|
@ -23,7 +23,7 @@ import {
|
|||
useLocation,
|
||||
} from "react-router-dom";
|
||||
import { useConferenceCallManager } from "./ConferenceCallManagerHooks";
|
||||
import { JoinOrCreateRoom } from "./JoinOrCreateRoom";
|
||||
import { Home } from "./Home";
|
||||
import { LoginOrRegister } from "./LoginOrRegister";
|
||||
import { Room } from "./Room";
|
||||
import { GridDemo } from "./GridDemo";
|
||||
|
|
@ -37,7 +37,7 @@ export default function App() {
|
|||
|
||||
return (
|
||||
<Router>
|
||||
<div>
|
||||
<>
|
||||
{error && <p>{error.message}</p>}
|
||||
{loading ? (
|
||||
<p>Loading...</p>
|
||||
|
|
@ -45,7 +45,7 @@ export default function App() {
|
|||
<Switch>
|
||||
<Route exact path="/">
|
||||
{authenticated ? (
|
||||
<JoinOrCreateRoom manager={manager} />
|
||||
<Home manager={manager} />
|
||||
) : (
|
||||
<LoginOrRegister onRegister={register} onLogin={login} />
|
||||
)}
|
||||
|
|
@ -61,7 +61,7 @@ export default function App() {
|
|||
</Route>
|
||||
</Switch>
|
||||
)}
|
||||
</div>
|
||||
</>
|
||||
</Router>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue