From c7fd7c010d410e0aa78438a14fcfc93773baa8b4 Mon Sep 17 00:00:00 2001 From: Vivian Phung Date: Sat, 22 Jun 2024 21:02:07 -0400 Subject: [PATCH] loading for project --- .../org-slug/projects/create/template/index.tsx | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/packages/frontend/src/pages/org-slug/projects/create/template/index.tsx b/packages/frontend/src/pages/org-slug/projects/create/template/index.tsx index 63a22051..fbfeb354 100644 --- a/packages/frontend/src/pages/org-slug/projects/create/template/index.tsx +++ b/packages/frontend/src/pages/org-slug/projects/create/template/index.tsx @@ -11,7 +11,10 @@ import { Template } from '../../../../../types/types'; import { Heading } from 'components/shared/Heading'; import { Input } from 'components/shared/Input'; import { Select, SelectOption } from 'components/shared/Select'; -import { ArrowRightCircleFilledIcon } from 'components/shared/CustomIcon'; +import { + ArrowRightCircleFilledIcon, + LoadingIcon, +} from 'components/shared/CustomIcon'; import { Checkbox } from 'components/shared/Checkbox'; import { Button } from 'components/shared/Button'; import { useToast } from 'components/shared/Toast'; @@ -192,7 +195,13 @@ const CreateRepo = () => { {...buttonSize} type="submit" disabled={!Boolean(template.repoFullName) || isLoading} - rightIcon={} + rightIcon={ + isLoading ? ( + + ) : ( + + ) + } > Deploy