mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-09 15:54:47 -07:00
Webatrice: show loading screen until protobuf initializes (#4559)
* show loading screen until protobuf initializes * cleanup Co-authored-by: Jeremy Letto <jeremy.letto@datasite.com>
This commit is contained in:
parent
bb16ae09ef
commit
6928a2bd98
15 changed files with 178 additions and 4 deletions
|
|
@ -11,6 +11,7 @@ import {
|
|||
Server,
|
||||
Login,
|
||||
Logs,
|
||||
Initialize,
|
||||
Unsupported
|
||||
} from 'containers';
|
||||
|
||||
|
|
@ -25,9 +26,10 @@ const Routes = () => (
|
|||
{<Route path={RouteEnum.ROOM} render={() => <Room />} />}
|
||||
<Route path={RouteEnum.SERVER} render={() => <Server />} />
|
||||
<Route path={RouteEnum.LOGIN} render={() => <Login />} />
|
||||
<Route path={RouteEnum.INITIALIZE} render={() => <Initialize />} />
|
||||
<Route path={RouteEnum.UNSUPPORTED} render={() => <Unsupported />} />
|
||||
|
||||
<Redirect from="*" to={RouteEnum.LOGIN} />
|
||||
<Redirect from="*" to={RouteEnum.INITIALIZE} />
|
||||
</Switch>
|
||||
</div>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue