Positioned document loading state with the document content

This commit is contained in:
Jori Lallo
2017-07-07 00:14:00 -07:00
parent fc4d9cb0b5
commit dbcfe1199e
2 changed files with 7 additions and 3 deletions

View File

@ -11,7 +11,7 @@ const randomValues = Array.from(
() => `${randomInteger(85, 100)}%`
);
export default () => {
export default (props: {}) => {
return (
<ReactCSSTransitionGroup
transitionName="fadeIn"
@ -22,7 +22,7 @@ export default () => {
transitionEnterTimeout={0}
transitionLeaveTimeout={0}
>
<Flex column auto>
<Flex column auto {...props}>
<Mask style={{ width: randomValues[0] }} header />
<Mask style={{ width: randomValues[1] }} />
<Mask style={{ width: randomValues[2] }} />