1
0
Fork 1
mirror of https://github.com/SomboChea/ui synced 2024-06-26 21:15:32 +07:00
verdaccio-ui/src/components/Layout/Layout.tsx
Priscila Oliveira ae73772a37 feat(eslint-config): add order rule in import
* refactor: added eslint-plugin-import

* refactor: disable some rules for muiComponents

* fix: fixed import
2019-10-07 22:19:18 +02:00

33 lines
620 B
TypeScript

import styled, { css } from 'react-emotion';
import colors from '../../utils/styles/colors';
export const Content = styled('div')({
'&&': {
backgroundColor: colors.white,
flex: 1,
display: 'flex',
position: 'relative',
flexDirection: 'column',
},
});
interface ContainerProps {
isLoading: boolean;
}
export const Container = styled('div')`
&& {
display: flex;
flex-direction: column;
min-height: 100vh;
overflow: hidden;
${({ isLoading }: ContainerProps) =>
isLoading &&
css`
${Content} {
background-color: #f5f6f8;
}
`}
`;