From 3e6db8e7ab92dbfcdd7cd42506d03c7ec2bbdba0 Mon Sep 17 00:00:00 2001 From: Chao Pan Date: Sat, 8 Aug 2020 21:08:20 +0800 Subject: [PATCH] Display different colors for compound APY Detect the browser language, if it is Chinese, use red color; otherwise, show green color. --- web-front/src/components/rewardPools/rewardPools.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web-front/src/components/rewardPools/rewardPools.jsx b/web-front/src/components/rewardPools/rewardPools.jsx index ace1314..4ad62fe 100644 --- a/web-front/src/components/rewardPools/rewardPools.jsx +++ b/web-front/src/components/rewardPools/rewardPools.jsx @@ -348,7 +348,7 @@ const styles = theme => ({ paddingLeft:'24px' }, '& td:last-child':{ - color:'#FF4242', + color:navigator.language=="zh"?'#FF4242':'#43CD48', paddingRight:'24px', } },