fix(striker-ui): simplify set marginTop in Spinner

main
Tsu-ba-me 2 years ago
parent ac0c17396f
commit ea00fb6edd
  1. 5
      striker-ui/components/Spinner.tsx

@ -21,8 +21,9 @@ const SPINNER_DEFAULT_PROPS: Required<SpinnerOptionalProps> = {
const Spinner: FC<SpinnerProps> = (spinnerProps): JSX.Element => {
const {
sx,
mt = '3em',
progressProps = SPINNER_DEFAULT_PROPS.progressProps,
sx,
...spinnerRestProps
} = spinnerProps;
@ -35,7 +36,7 @@ const Spinner: FC<SpinnerProps> = (spinnerProps): JSX.Element => {
alignItems: 'center',
display: 'flex',
justifyContent: 'center',
marginTop: '3em',
marginTop: mt,
[`& .${muiCircularProgressClasses.root}`]: {
color: TEXT,

Loading…
Cancel
Save