From 3a19106ddf04ab4c98921ffa64f0bdbfd8598ebc Mon Sep 17 00:00:00 2001 From: Saksham Gupta <90046016+0xSaksham@users.noreply.github.com> Date: Wed, 28 Aug 2024 16:52:35 +0530 Subject: [PATCH] ui(sweep): add cooking pot sprite (#825) --- public/sprite.svg | 36 +++++++++++++++++ src/components/ScheduleProgress.tsx | 60 +++++++++++++++-------------- 2 files changed, 68 insertions(+), 28 deletions(-) diff --git a/public/sprite.svg b/public/sprite.svg index 61caf4245..7149a30b5 100644 --- a/public/sprite.svg +++ b/public/sprite.svg @@ -367,4 +367,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/components/ScheduleProgress.tsx b/src/components/ScheduleProgress.tsx index 1c992ce38..c8e5f8f0e 100644 --- a/src/components/ScheduleProgress.tsx +++ b/src/components/ScheduleProgress.tsx @@ -2,6 +2,7 @@ import * as rb from 'react-bootstrap' import { Trans, useTranslation } from 'react-i18next' import styles from './ScheduleProgress.module.css' import { Schedule } from '../context/ServiceInfoContext' +import Sprite from './Sprite' const scheduleToSteps = (schedule: Schedule) => { // Example Schedule: @@ -119,37 +120,33 @@ const ScheduleProgress = ({ schedule }: ScheduleProgressProps) => {

{t('scheduler.progress_description')}

-
-
-
- {stepsJsx} -
+
+
-
+ +
{steps.completedTxs < steps.txs.length ? ( - <> -
-
- +
+
) : (
{ )}
+ +
+
+
+ {stepsJsx} +
+
) }