From b1e08187c9d0e1bb42fcb2ef10cc316b81f68511 Mon Sep 17 00:00:00 2001 From: guanbinrui Date: Fri, 23 Jul 2021 09:51:16 +0800 Subject: [PATCH] fix: the color of text placeholder --- packages/maskbook/src/_locales/en/messages.json | 2 +- .../src/plugins/PoolTogether/UI/PoolTogetherView.tsx | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/packages/maskbook/src/_locales/en/messages.json b/packages/maskbook/src/_locales/en/messages.json index 7e78f13ac2e2..3e892213efa7 100644 --- a/packages/maskbook/src/_locales/en/messages.json +++ b/packages/maskbook/src/_locales/en/messages.json @@ -734,7 +734,7 @@ "plugin_dhedge_smt_wrong": "Something went wrong!", "plugin_pooltogether_tab_pools": "Pools", "plugin_pooltogether_tab_account": "Account", - "plugin_pooltogether_no_pool": "There is no pool on this network", + "plugin_pooltogether_no_pool": "There is no pool on this network.", "plugin_pooltogether_pool_ended": "Awarding...", "plugin_pooltogether_deposit": "Deposit {{token}}", "plugin_pooltogether_apr": "Earn {{apr}}% APR in {{token}}", diff --git a/packages/maskbook/src/plugins/PoolTogether/UI/PoolTogetherView.tsx b/packages/maskbook/src/plugins/PoolTogether/UI/PoolTogetherView.tsx index 5c1df2fc39c5..4debfd42cf28 100644 --- a/packages/maskbook/src/plugins/PoolTogether/UI/PoolTogetherView.tsx +++ b/packages/maskbook/src/plugins/PoolTogether/UI/PoolTogetherView.tsx @@ -33,6 +33,7 @@ const useStyles = makeStyles((theme) => ({ textAlign: 'center', }, message: { + color: theme.palette.text.primary, textAlign: 'center', }, refresh: { @@ -160,11 +161,7 @@ export function PoolTogetherView(props: PoolTogetherViewProps) { } if (pools.length === 0) { - return ( - - {t('plugin_pooltogether_no_pool')} - - ) + return {t('plugin_pooltogether_no_pool')} } return (