Update views to support a more logical container

This commit is contained in:
Dane Everitt 2020-04-17 11:17:01 -07:00
parent e044e8db1c
commit e6a61fbe9b
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
20 changed files with 85 additions and 39 deletions

View file

@ -14,6 +14,7 @@ import Can from '@/components/elements/Can';
import useServer from '@/plugins/useServer';
import useFlash from '@/plugins/useFlash';
import { ServerContext } from '@/state/server';
import PageContentBlock from '@/components/elements/PageContentBlock';
interface Params {
id: string;
@ -49,7 +50,7 @@ export default ({ match, history, location: { state } }: RouteComponentProps<Par
}, [ match ]);
return (
<div className={'my-10 mb-6'}>
<PageContentBlock>
<FlashMessageRender byKey={'schedules'} className={'mb-4'}/>
{!schedule || isLoading ?
<Spinner size={'large'} centered={true}/>
@ -104,6 +105,6 @@ export default ({ match, history, location: { state } }: RouteComponentProps<Par
</div>
</>
}
</div>
</PageContentBlock>
);
};