Skip to content

Commit

Permalink
Use indicator component.
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonAM authored and github-actions committed Feb 23, 2024
1 parent d5a8b1e commit d14f00d
Showing 1 changed file with 11 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,19 @@
*/

import Dialog, { DialogContent, DialogFooter } from 'design/DialogConfirmation';
import { Box, Flex, ButtonPrimary, ButtonSecondary, Text } from 'design';
import {
Box,
Flex,
ButtonPrimary,
ButtonSecondary,
Text,
Indicator,
} from 'design';

import React, { Suspense, useState, useEffect } from 'react';

import styled from 'styled-components';

import { Spinner } from 'design/Icon';

import * as Icons from 'design/Icon';

import { TextSelectCopyMulti } from 'teleport/components/TextSelectCopy';
Expand All @@ -51,7 +56,8 @@ export default function Container(props: ManualHelmDialogProps) {
<Suspense
fallback={<FallbackDialog showSpinner={true} cancel={props.cancel} />}
>
<ManualHelmDialog {...props} />
{/*<ManualHelmDialog {...props} />*/}
fallback={<FallbackDialog showSpinner={true} cancel={props.cancel} />}
</Suspense>
</CatchError>
);
Expand Down Expand Up @@ -101,9 +107,7 @@ const FallbackDialog = ({
<DialogWrapper cancel={cancel}>
{showSpinner && (
<Flex mb={4} justifyContent="center">
<Spin>
<Spinner />
</Spin>
<Indicator delay="none" />
</Flex>
)}
{error && (
Expand Down Expand Up @@ -175,17 +179,3 @@ const StyledBox = styled(Box)`
padding: ${props => `${props.theme.space[3]}px`};
border-radius: ${props => `${props.theme.space[2]}px`};
`;

const Spin = styled(Box)`
line-height: 12px;
font-size: 24px;
animation: spin 1s linear infinite;
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
`;

0 comments on commit d14f00d

Please sign in to comment.