From 6ec227f1a7cd1b271641048ddb6bc596c2b66a0d Mon Sep 17 00:00:00 2001 From: Ai Ling Date: Wed, 26 Oct 2022 20:43:34 +0800 Subject: [PATCH] [offers][fix] Add loading spinner --- .../offers/submit/result/[offerProfileId].tsx | 90 ++++++++++--------- 1 file changed, 50 insertions(+), 40 deletions(-) diff --git a/apps/portal/src/pages/offers/submit/result/[offerProfileId].tsx b/apps/portal/src/pages/offers/submit/result/[offerProfileId].tsx index beb61638..dd379145 100644 --- a/apps/portal/src/pages/offers/submit/result/[offerProfileId].tsx +++ b/apps/portal/src/pages/offers/submit/result/[offerProfileId].tsx @@ -2,7 +2,7 @@ import { useRouter } from 'next/router'; import { useEffect, useRef, useState } from 'react'; import { ArrowLeftIcon, ArrowRightIcon } from '@heroicons/react/20/solid'; import { EyeIcon } from '@heroicons/react/24/outline'; -import { Button } from '@tih/ui'; +import { Button, Spinner } from '@tih/ui'; import type { BreadcrumbStep } from '~/components/offers/Breadcrumb'; import { Breadcrumbs } from '~/components/offers/Breadcrumb'; @@ -68,46 +68,56 @@ export default function OffersSubmissionResult() { }, [step]); return ( -
-
-
-
- -
- {steps[step]} - {step === 0 && ( -
-
- )} - {step === 1 && ( -
-
+ )} + {step === 1 && ( +
+
+ )}
- )} +
- - + )} + ); }