@@ -14,6 +14,8 @@ import { useRetroAuth } from '../hooks/data/useRetroAuth';
1414import { useRetroReducer } from '../hooks/data/useRetroReducer' ;
1515import { StateMapProvider } from '../hooks/useStateMap' ;
1616import { RetroNotFoundPage } from './retro-not-found/RetroNotFoundPage' ;
17+ import { Header } from './common/Header' ;
18+ import { LoadingError , LoadingIndicator } from './common/Loader' ;
1719import { PasswordPage } from './password/PasswordPage' ;
1820import { ConnectionOverlay } from './retro/ConnectionOverlay' ;
1921import { RetroPage } from './retro/RetroPage' ;
@@ -41,19 +43,46 @@ export const RetroRouter: FunctionComponent<PropsT> = ({ slug }) => {
4143 }
4244
4345 if ( slugError ) {
44- return < div className = "loader error" > { slugError . message } </ div > ;
46+ return (
47+ < article className = "page-retro-error" >
48+ < Header
49+ documentTitle = { `${ slug } - Refacto` }
50+ title = { slug }
51+ backLink = { { label : 'Home' , action : '/' } }
52+ />
53+ < LoadingError error = { slugError . message } />
54+ </ article >
55+ ) ;
4556 }
4657
4758 if ( ! retroId ) {
48- return < div className = "loader" > Loading…</ div > ;
59+ return (
60+ < article className = "page-retro-loading" >
61+ < Header
62+ documentTitle = { `${ slug } - Refacto` }
63+ title = { slug }
64+ backLink = { { label : 'Home' , action : '/' } }
65+ />
66+ < LoadingIndicator />
67+ </ article >
68+ ) ;
4969 }
5070
5171 if ( ! retroAuth || ( ! retroState && status === 'reauthenticate' ) ) {
5272 return < PasswordPage slug = { slug } retroId = { retroId } /> ;
5373 }
5474
5575 if ( ! retroState ) {
56- return < div className = "loader" > Loading…</ div > ;
76+ return (
77+ < article className = "page-retro-loading" >
78+ < Header
79+ documentTitle = { `${ slug } - Refacto` }
80+ title = { slug }
81+ backLink = { { label : 'Home' , action : '/' } }
82+ />
83+ < LoadingIndicator />
84+ </ article >
85+ ) ;
5786 }
5887
5988 const retroParams = {
0 commit comments