Update views to support a more logical container
This commit is contained in:
parent
e044e8db1c
commit
e6a61fbe9b
20 changed files with 85 additions and 39 deletions
|
@ -1,7 +1,6 @@
|
|||
import React from 'react';
|
||||
import { Route } from 'react-router';
|
||||
import { CSSTransition, TransitionGroup } from 'react-transition-group';
|
||||
import PageContentBlock from '@/components/elements/PageContentBlock';
|
||||
|
||||
type Props = Readonly<{
|
||||
children: React.ReactNode;
|
||||
|
@ -13,9 +12,7 @@ export default ({ children }: Props) => (
|
|||
<TransitionGroup className={'route-transition-group'}>
|
||||
<CSSTransition key={location.key} timeout={250} in={true} appear={true} classNames={'fade'}>
|
||||
<section>
|
||||
<PageContentBlock>
|
||||
{children}
|
||||
</PageContentBlock>
|
||||
{children}
|
||||
</section>
|
||||
</CSSTransition>
|
||||
</TransitionGroup>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue