From 2ab68a62e3dc05a56136a3caf7c29c58fa5ac62d Mon Sep 17 00:00:00 2001 From: alisa Date: Tue, 25 Apr 2023 14:52:55 +0800 Subject: [PATCH] feat: Governance status color --- src/components/ProposalListItem.vue | 8 ++++++-- tailwind.config.js | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/components/ProposalListItem.vue b/src/components/ProposalListItem.vue index 149c3b55..f2ef0b3b 100644 --- a/src/components/ProposalListItem.vue +++ b/src/components/ProposalListItem.vue @@ -48,8 +48,12 @@ const statusMap: Record = { -
-
+
+
{{ statusMap?.[item?.status] || item?.status }}
diff --git a/tailwind.config.js b/tailwind.config.js index c90e4ea0..582bf65f 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -7,6 +7,7 @@ module.exports = { colors: { main: '#5973fe', yes: '#3fb68b', + inProgress: '#4472de', no: '#ff5353', info: '#00b2ff', textMain: '#333',