From 06f190b2c48acfc853c9f675bf918c43c17f800a Mon Sep 17 00:00:00 2001 From: Xiao Yijun Date: Mon, 4 Jul 2022 12:36:03 +0800 Subject: [PATCH] feat(console): update task complete icon (#1395) --- .../console/src/assets/images/circle-tick.svg | 4 --- .../src/assets/images/task-complete.svg | 31 +++++++++++++++++++ .../src/pages/GetStarted/index.module.scss | 7 ----- .../console/src/pages/GetStarted/index.tsx | 6 ++-- 4 files changed, 34 insertions(+), 14 deletions(-) delete mode 100644 packages/console/src/assets/images/circle-tick.svg create mode 100644 packages/console/src/assets/images/task-complete.svg diff --git a/packages/console/src/assets/images/circle-tick.svg b/packages/console/src/assets/images/circle-tick.svg deleted file mode 100644 index c01249568..000000000 --- a/packages/console/src/assets/images/circle-tick.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/packages/console/src/assets/images/task-complete.svg b/packages/console/src/assets/images/task-complete.svg new file mode 100644 index 000000000..edfaa6fcf --- /dev/null +++ b/packages/console/src/assets/images/task-complete.svg @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/packages/console/src/pages/GetStarted/index.module.scss b/packages/console/src/pages/GetStarted/index.module.scss index 710b0e497..6b63344ad 100644 --- a/packages/console/src/pages/GetStarted/index.module.scss +++ b/packages/console/src/pages/GetStarted/index.module.scss @@ -44,13 +44,6 @@ margin-right: _.unit(6); } - .completeIndicator { - position: absolute; - top: 53px; - left: 70px; - color: var(--color-layer-1); - } - .wrapper { flex: 1; display: flex; diff --git a/packages/console/src/pages/GetStarted/index.tsx b/packages/console/src/pages/GetStarted/index.tsx index 282e017b4..ba66d1670 100644 --- a/packages/console/src/pages/GetStarted/index.tsx +++ b/packages/console/src/pages/GetStarted/index.tsx @@ -2,7 +2,7 @@ import React, { useState } from 'react'; import { useTranslation } from 'react-i18next'; import { useNavigate } from 'react-router-dom'; -import CompleteIndicator from '@/assets/images/circle-tick.svg'; +import CompleteIndicator from '@/assets/images/task-complete.svg'; import Button from '@/components/Button'; import Card from '@/components/Card'; import ConfirmModal from '@/components/ConfirmModal'; @@ -52,8 +52,8 @@ const GetStarted = () => { ({ id, title, subtitle, icon: CardIcon, isComplete, isHidden, buttonText, onClick }) => !isHidden && ( - - {isComplete && } + {!isComplete && } + {isComplete && }
{t(title)}
{t(subtitle)}