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

Loading…
Cancel
Save