({ title: '', publishTime: 0, content: '' })
@@ -136,6 +140,19 @@ const Announcement: React.FC = () => {
const close = () => {
setDetailVisible(false)
}
+
+ const renderContent = (): JSX.Element => {
+ return (
+
+ {list.map((item) => (
+ lookDetail(item.id)}>
+
+
+ ))}
+
+ )
+ }
+
return (
{detailVisible ? (
@@ -149,18 +166,20 @@ const Announcement: React.FC = () => {
-
+
- {list.map((item) => (
+ {renderContent()}
+
+ {/* {list.map((item) => (
lookDetail(item.id)}>
- ))}
+ ))} */}
)}
From 5b32d7024517758293ddf0f744da6a25d33c5952 Mon Sep 17 00:00:00 2001
From: myf <>
Date: Mon, 25 Apr 2022 09:43:46 +0800
Subject: [PATCH 8/8] =?UTF-8?q?=E9=83=A8=E5=88=86=E5=86=9B=E5=9B=A2?=
=?UTF-8?q?=E9=95=BF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
public/locales/zh-CN.json | 4 +++-
src/config/localization/translations.json | 4 +++-
src/views/Referral/components/Connected.tsx | 14 +++++++++++---
src/views/Referral/components/Regimental.tsx | 7 +++++--
src/views/Referral/components/UnunitedCom.tsx | 4 ++--
src/views/Referral/index.tsx | 4 ++--
6 files changed, 26 insertions(+), 11 deletions(-)
diff --git a/public/locales/zh-CN.json b/public/locales/zh-CN.json
index 3406185..5592efc 100644
--- a/public/locales/zh-CN.json
+++ b/public/locales/zh-CN.json
@@ -1116,5 +1116,7 @@
"total revenue":"总收益",
"revenue":"收益",
"purchase":"购买",
- "Enter a keyword search":"输入关键字搜索"
+ "Enter a keyword search":"输入关键字搜索",
+ "By using the invitation at the top right of the page, new users can be invited to enter and obtained after users purchase coins":"使用页面右上方的邀请,可邀请新用户进入,并在用户购买币后获得",
+ "The commission":"的提成!"
}
diff --git a/src/config/localization/translations.json b/src/config/localization/translations.json
index 7a06a8d..4373195 100644
--- a/src/config/localization/translations.json
+++ b/src/config/localization/translations.json
@@ -1243,5 +1243,7 @@
"total revenue":"total revenue",
"revenue":"revenue",
"purchase":"purchase",
- "Enter a keyword search":"Enter a keyword search"
+ "Enter a keyword search":"Enter a keyword search",
+ "By using the invitation at the top right of the page, new users can be invited to enter and obtained after users purchase coins":"By using the invitation at the top right of the page, new users can be invited to enter and obtained after users purchase coins",
+ "The commission":"The commission!"
}
diff --git a/src/views/Referral/components/Connected.tsx b/src/views/Referral/components/Connected.tsx
index e89a475..6407c7b 100644
--- a/src/views/Referral/components/Connected.tsx
+++ b/src/views/Referral/components/Connected.tsx
@@ -3,7 +3,11 @@ import styled from 'styled-components'
import { useTranslation } from 'contexts/Localization'
import { Button, useModal, Text } from '@pancakeswap/uikit'
import { inviteReceive } from 'services/referral'
-import { useReferralNormalConfigInfo, useReferralRewardInfo } from 'state/referral/hooks'
+import {
+ useReferralNormalConfigInfo,
+ useReferralCommanderConfigInfo,
+ useReferralRewardInfo,
+} from 'state/referral/hooks'
import FlexCom from './FlexCom'
import BuyNftModal from './BuyNftModal'
import HeaderMain from './HeaderMain'
@@ -54,6 +58,7 @@ const ConnectedCom: React.FC = () => {
console.log('referralNormalConfigInfo:', referralNormalConfigInfo)
const referralRewardInfo = useReferralRewardInfo()
console.log('referralRewardInfo:', referralRewardInfo)
+ const referralCommanderConfigInfo = useReferralCommanderConfigInfo()
const getInviteReceive = async () => {
await inviteReceive()
}
@@ -81,9 +86,12 @@ const ConnectedCom: React.FC = () => {
{t('Upgrade commander')}