mirror of
https://github.com/SomboChea/ui
synced 2024-11-24 15:04:27 +07:00
fix: spinner typings
This commit is contained in:
parent
626bcce5cb
commit
3166673875
@ -3,13 +3,16 @@ import styled, { css } from 'react-emotion';
|
|||||||
|
|
||||||
import colors from '../../utils/styles/colors';
|
import colors from '../../utils/styles/colors';
|
||||||
|
|
||||||
|
interface WrapperProps {
|
||||||
|
centered: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
export const Wrapper = styled('div')`
|
export const Wrapper = styled('div')`
|
||||||
&& {
|
&& {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
${props =>
|
${(props: WrapperProps) =>
|
||||||
// @ts-ignore
|
|
||||||
props.centered &&
|
props.centered &&
|
||||||
css`
|
css`
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
Loading…
Reference in New Issue
Block a user