From b47caaacabfe031bf942e0c1a19a201f11117cf5 Mon Sep 17 00:00:00 2001 From: ingawei Date: Tue, 30 Jul 2024 23:21:52 -0400 Subject: [PATCH] make coins flat --- web/components/twomba/twomba-toggle.tsx | 9 ++--- web/components/widgets/manaCoinNumber.tsx | 2 +- web/public/SweepiesFlat.svg | 1 + web/public/custom-components/manaFlatCoin.tsx | 19 ++++++++++ .../custom-components/sweepiesFlatCoin.tsx | 19 ++++++++++ web/public/manaFlat.svg | 38 +++++++++++++++++++ 6 files changed, 82 insertions(+), 6 deletions(-) create mode 100644 web/public/SweepiesFlat.svg create mode 100644 web/public/custom-components/manaFlatCoin.tsx create mode 100644 web/public/custom-components/sweepiesFlatCoin.tsx create mode 100644 web/public/manaFlat.svg diff --git a/web/components/twomba/twomba-toggle.tsx b/web/components/twomba/twomba-toggle.tsx index a54b54513b..66ae25beed 100644 --- a/web/components/twomba/twomba-toggle.tsx +++ b/web/components/twomba/twomba-toggle.tsx @@ -1,7 +1,6 @@ -import { SweepiesCoin } from 'web/public/custom-components/sweepiesCoin' -import { Row } from '../layout/row' -import { ManaCoin } from 'web/public/custom-components/manaCoin' import clsx from 'clsx' +import { ManaFlatCoin } from 'web/public/custom-components/manaFlatCoin' +import { SweepiesFlatCoin } from 'web/public/custom-components/sweepiesFlatCoin' export type TWOMBA_MODE_TYPE = 'sweepies' | 'mana' @@ -22,13 +21,13 @@ export function TwombaToggle(props: { mode === 'sweepies' ? 'left-0' : 'left-[calc(100%-2.3rem)]' )} /> */} - - \ No newline at end of file diff --git a/web/public/custom-components/manaFlatCoin.tsx b/web/public/custom-components/manaFlatCoin.tsx new file mode 100644 index 0000000000..852e8a36d5 --- /dev/null +++ b/web/public/custom-components/manaFlatCoin.tsx @@ -0,0 +1,19 @@ +import clsx from 'clsx' +import { ENV_CONFIG } from 'common/envs/constants' +import Image from 'next/image' + +export function ManaFlatCoin(props: { className?: string }) { + const { className } = props + return ( + {ENV_CONFIG.moneyMoniker} + ) +} diff --git a/web/public/custom-components/sweepiesFlatCoin.tsx b/web/public/custom-components/sweepiesFlatCoin.tsx new file mode 100644 index 0000000000..550b0b3521 --- /dev/null +++ b/web/public/custom-components/sweepiesFlatCoin.tsx @@ -0,0 +1,19 @@ +import clsx from 'clsx' +import { ENV_CONFIG } from 'common/envs/constants' +import Image from 'next/image' + +export function SweepiesFlatCoin(props: { className?: string }) { + const { className } = props + return ( + {ENV_CONFIG.moneyMoniker} + ) +} diff --git a/web/public/manaFlat.svg b/web/public/manaFlat.svg new file mode 100644 index 0000000000..49dc7d6f61 --- /dev/null +++ b/web/public/manaFlat.svg @@ -0,0 +1,38 @@ + + + + + + + + + +