refactor(striker-ui): apply mt in Spinner occurrences

main
Tsu-ba-me 2 years ago
parent 383b4e938e
commit bb4b9f5441
  1. 2
      striker-ui/components/GateForm.tsx
  2. 2
      striker-ui/components/PrepareHostForm.tsx
  3. 2
      striker-ui/components/ProvisionServerDialog.tsx
  4. 2
      striker-ui/components/StrikerConfig/SimpleOperationsPanel.tsx

@ -183,7 +183,7 @@ const GateForm = forwardRef<GateFormForwardedRefContent, GateFormProps>(
const submitElement = useMemo( const submitElement = useMemo(
() => () =>
isSubmitting ? ( isSubmitting ? (
<Spinner sx={{ marginTop: 0 }} /> <Spinner mt={0} />
) : ( ) : (
<FlexBox row sx={{ justifyContent: 'flex-end' }}> <FlexBox row sx={{ justifyContent: 'flex-end' }}>
<ContainedButton <ContainedButton

@ -477,7 +477,7 @@ const PrepareHostForm: FC = () => {
const submitSection = useMemo( const submitSection = useMemo(
() => () =>
isSubmittingPrepareHost ? ( isSubmittingPrepareHost ? (
<Spinner sx={{ marginTop: 0 }} /> <Spinner mt={0} />
) : ( ) : (
<FlexBox <FlexBox
row row

@ -1753,7 +1753,7 @@ const ProvisionServerDialog = ({
/> />
)} )}
{isProvisionRequestInProgress ? ( {isProvisionRequestInProgress ? (
<Spinner sx={{ marginTop: 0 }} /> <Spinner mt={0} />
) : ( ) : (
<Box <Box
sx={{ sx={{

@ -33,7 +33,7 @@ const SimpleOperationsPanel: FC<SimpleOperationsPanelProps> = ({
title ? ( title ? (
<HeaderText sx={{ textAlign: 'center' }}>{title}</HeaderText> <HeaderText sx={{ textAlign: 'center' }}>{title}</HeaderText>
) : ( ) : (
<Spinner sx={{ marginTop: 0 }} /> <Spinner mt={0} />
), ),
[title], [title],
); );

Loading…
Cancel
Save