File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -27,20 +27,22 @@ const StyledKlerosIcon = styled(KlerosIcon)`
2727 animation: ${ breathing } 2s ease-out infinite normal;
2828` ;
2929
30- const Container = styled . div < { width ?: Width ; height ?: Height } > `
30+ const Container = styled . div < { width ?: Width ; height ?: Height ; center ?: boolean } > `
3131 width: ${ ( { width } ) => width ?? "100%" } ;
3232 height: ${ ( { height } ) => height ?? "100%" } ;
33+ ${ ( { center } ) => ( center ? "margin: auto" : "" ) } ;
3334` ;
3435
3536interface ILoader {
3637 width ?: Width ;
3738 height ?: Height ;
39+ center ?: boolean ;
3840 className ?: string ;
3941}
4042
41- const Loader : React . FC < ILoader > = ( { width, height, className } ) => {
43+ const Loader : React . FC < ILoader > = ( { width, height, center , className } ) => {
4244 return (
43- < Container { ...{ width, height, className } } >
45+ < Container { ...{ width, height, center , className } } >
4446 < StyledKlerosIcon />
4547 </ Container >
4648 ) ;
You can’t perform that action at this time.
0 commit comments