From 1141c587a86a205d7f75a6f05c1b94b85de84a2c Mon Sep 17 00:00:00 2001 From: Lyka Labrada Date: Wed, 30 Aug 2023 13:37:31 +0800 Subject: [PATCH 1/4] feat(ui-ux): add svg icons for sui and xchf tokens --- .../app/components/icons/assets/XCHF.tsx | 18 +++++++++++ .../app/components/icons/assets/dSUI.tsx | 30 +++++++++++++++++++ .../app/components/icons/assets/dXCHF.tsx | 18 +++++++++++ .../app/components/icons/assets/index.ts | 6 ++++ 4 files changed, 72 insertions(+) create mode 100644 mobile-app/app/components/icons/assets/XCHF.tsx create mode 100644 mobile-app/app/components/icons/assets/dSUI.tsx create mode 100644 mobile-app/app/components/icons/assets/dXCHF.tsx diff --git a/mobile-app/app/components/icons/assets/XCHF.tsx b/mobile-app/app/components/icons/assets/XCHF.tsx new file mode 100644 index 0000000000..19cf87e755 --- /dev/null +++ b/mobile-app/app/components/icons/assets/XCHF.tsx @@ -0,0 +1,18 @@ +import Svg, { Path, SvgProps } from "react-native-svg"; + +export function XCHF(props: SvgProps): JSX.Element { + return ( + + + + + ); +} diff --git a/mobile-app/app/components/icons/assets/dSUI.tsx b/mobile-app/app/components/icons/assets/dSUI.tsx new file mode 100644 index 0000000000..5cddc13000 --- /dev/null +++ b/mobile-app/app/components/icons/assets/dSUI.tsx @@ -0,0 +1,30 @@ +import Svg, { ClipPath, Defs, G, Path, SvgProps } from "react-native-svg"; + +export function dSUI(props: SvgProps): JSX.Element { + return ( + + + + + + + + + + + + + + + + + ); +} diff --git a/mobile-app/app/components/icons/assets/dXCHF.tsx b/mobile-app/app/components/icons/assets/dXCHF.tsx new file mode 100644 index 0000000000..f5acff4cb6 --- /dev/null +++ b/mobile-app/app/components/icons/assets/dXCHF.tsx @@ -0,0 +1,18 @@ +import Svg, { Path, SvgProps } from "react-native-svg"; + +export function dXCHF(props: SvgProps): JSX.Element { + return ( + + + + + ); +} diff --git a/mobile-app/app/components/icons/assets/index.ts b/mobile-app/app/components/icons/assets/index.ts index 399e893b47..d95319e877 100644 --- a/mobile-app/app/components/icons/assets/index.ts +++ b/mobile-app/app/components/icons/assets/index.ts @@ -18,6 +18,9 @@ import { MATIC } from "./MATIC"; import { dDOT } from "./dDOT"; import { dMATIC } from "./dMATIC"; import { dSOL } from "./dSOL"; +import { dSUI } from "./dSUI"; +import { XCHF } from "./XCHF"; +import { dXCHF } from "./dXCHF"; const mapping: Record JSX.Element> = { _UTXO: DFI, @@ -43,6 +46,9 @@ const mapping: Record JSX.Element> = { dDOT: dDOT, dMATIC: dMATIC, dSOL: dSOL, + dSUI: dSUI, + XCHF: XCHF, + dXCHF: dXCHF, }; /** From 2de96d9b8e1500f3432342e0e90716878c15471a Mon Sep 17 00:00:00 2001 From: Lyka Labrada Date: Wed, 30 Aug 2023 14:32:47 +0800 Subject: [PATCH 2/4] fix invlalid svg props --- mobile-app/app/components/icons/assets/XCHF.tsx | 4 ++-- mobile-app/app/components/icons/assets/dSUI.tsx | 8 ++++---- mobile-app/app/components/icons/assets/dXCHF.tsx | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/mobile-app/app/components/icons/assets/XCHF.tsx b/mobile-app/app/components/icons/assets/XCHF.tsx index 19cf87e755..5314e74790 100644 --- a/mobile-app/app/components/icons/assets/XCHF.tsx +++ b/mobile-app/app/components/icons/assets/XCHF.tsx @@ -4,8 +4,8 @@ export function XCHF(props: SvgProps): JSX.Element { return ( diff --git a/mobile-app/app/components/icons/assets/dSUI.tsx b/mobile-app/app/components/icons/assets/dSUI.tsx index 5cddc13000..7312d71880 100644 --- a/mobile-app/app/components/icons/assets/dSUI.tsx +++ b/mobile-app/app/components/icons/assets/dSUI.tsx @@ -3,15 +3,15 @@ import Svg, { ClipPath, Defs, G, Path, SvgProps } from "react-native-svg"; export function dSUI(props: SvgProps): JSX.Element { return ( - - + + diff --git a/mobile-app/app/components/icons/assets/dXCHF.tsx b/mobile-app/app/components/icons/assets/dXCHF.tsx index f5acff4cb6..fa490cf7dc 100644 --- a/mobile-app/app/components/icons/assets/dXCHF.tsx +++ b/mobile-app/app/components/icons/assets/dXCHF.tsx @@ -4,8 +4,8 @@ export function dXCHF(props: SvgProps): JSX.Element { return ( From 2dbfb738bfd233c556e6149f408d027bdeadb593 Mon Sep 17 00:00:00 2001 From: Lyka Labrada Date: Wed, 30 Aug 2023 14:56:50 +0800 Subject: [PATCH 3/4] update sui svg to a flatter one --- .../app/components/icons/assets/dSUI.tsx | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/mobile-app/app/components/icons/assets/dSUI.tsx b/mobile-app/app/components/icons/assets/dSUI.tsx index 7312d71880..5a35d6a8ec 100644 --- a/mobile-app/app/components/icons/assets/dSUI.tsx +++ b/mobile-app/app/components/icons/assets/dSUI.tsx @@ -4,26 +4,21 @@ export function dSUI(props: SvgProps): JSX.Element { return ( - - - - + + - - - ); From 86522bb476344d8cc46ba23badd1571a776a09e7 Mon Sep 17 00:00:00 2001 From: Lyka Labrada Date: Wed, 30 Aug 2023 15:25:27 +0800 Subject: [PATCH 4/4] fix rect prop --- mobile-app/app/components/icons/assets/dSUI.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mobile-app/app/components/icons/assets/dSUI.tsx b/mobile-app/app/components/icons/assets/dSUI.tsx index 5a35d6a8ec..38ad607ac9 100644 --- a/mobile-app/app/components/icons/assets/dSUI.tsx +++ b/mobile-app/app/components/icons/assets/dSUI.tsx @@ -1,4 +1,4 @@ -import Svg, { ClipPath, Defs, G, Path, SvgProps } from "react-native-svg"; +import Svg, { ClipPath, Defs, G, Path, Rect, SvgProps } from "react-native-svg"; export function dSUI(props: SvgProps): JSX.Element { return ( @@ -17,7 +17,7 @@ export function dSUI(props: SvgProps): JSX.Element { - +