From 60353455d7a6b9df4fbe98e23f6ee7a0a494f4c3 Mon Sep 17 00:00:00 2001 From: christn Date: Wed, 14 Feb 2024 15:39:28 +0800 Subject: [PATCH] fix(BurnDashboard): Alignment and capitalization (#318) * Fix alignment in burn section * Remove trailing seperator and rounded corners at the end of burn category gauge * Make all category labels lower case except acronyms --- src/mainsite/api/burn-categories.ts | 14 +++++++------- src/mainsite/components/BurnCategoryWidget.tsx | 5 +++-- src/mainsite/components/BurnRecords.tsx | 4 ++-- 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/src/mainsite/api/burn-categories.ts b/src/mainsite/api/burn-categories.ts index c148a8e8..793d1b21 100644 --- a/src/mainsite/api/burn-categories.ts +++ b/src/mainsite/api/burn-categories.ts @@ -23,18 +23,18 @@ export const categoryId = [ export type CategoryId = typeof categoryId[number]; export const categoryDisplayMap: Record = { - "l1-bridge": "L1 Bridge", + "l1-bridge": "L1 bridge", cex: "CEX", - defi: "DeFi", - gaming: "Gaming", + defi: "defi", + gaming: "gaming", l1: "L1", l2: "L2", mev: "MEV", - misc: "Misc (CEX, memecoins, etc)", + misc: "misc (CEX, memecoins, etc)", nft: "NFTs", - transfers: "ETH Transfers", - creations: "Contract creations", - woof: "Woof", + transfers: "ETH transfers", + creations: "contract creations", + woof: "woof", }; export const getIsKnownCategory = (u: unknown): u is CategoryId => diff --git a/src/mainsite/components/BurnCategoryWidget.tsx b/src/mainsite/components/BurnCategoryWidget.tsx index 01540542..09c60f11 100644 --- a/src/mainsite/components/BurnCategoryWidget.tsx +++ b/src/mainsite/components/BurnCategoryWidget.tsx @@ -395,10 +395,10 @@ const CategorySegmentItem: FC<{ }> = ({ isLast, category, isFirst }) => ( <> -
+ {!isLast &&
} ); @@ -574,6 +574,7 @@ const BurnCategoryWidget: FC = ({ onClickTimeFrame, timeFrame }) => { return ( = ({ onClickTimeFrame, timeFrame}) => {