From e026ef6bd0de4e31f709c3292c8b2d4cd73de7ca Mon Sep 17 00:00:00 2001 From: includeleec Date: Tue, 10 Sep 2019 12:14:41 +0800 Subject: [PATCH] add download client --- .env.development | 3 ++- .env.production | 3 ++- public/locales/en/common.json | 1 + public/locales/zh-CN/common.json | 1 + src/components/common/header/Header.js | 7 +++++-- 5 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.env.development b/.env.development index afc4c32..a1e33a2 100644 --- a/.env.development +++ b/.env.development @@ -2,4 +2,5 @@ REACT_APP_NEBNET=https://testnet.nebulas.io REACT_APP_NAX_DATA_CONTRACT=n1ykEiYuNUSn1YvXjd5jwyD53zvxUruQyWU REACT_APP_STAKING_PROXY_CONTRACT=n1vP9S4nxDnEa7B8CMnDZSoQgtcLMrckVaD REACT_APP_STAKING_MIN=5 -REACT_APP_CHAIN_ID=1001 \ No newline at end of file +REACT_APP_CHAIN_ID=1001 +REACT_APP_RELEASE_URL=https://github.com/nebulasio/dstaking-webclient/releases \ No newline at end of file diff --git a/.env.production b/.env.production index 2de1ca2..95504d3 100644 --- a/.env.production +++ b/.env.production @@ -2,4 +2,5 @@ REACT_APP_NEBNET=https://mainnet.nebulas.io REACT_APP_NAX_DATA_CONTRACT=n1fY7aw5V2g9yuXVMyoW22TRjRkrBSzmpts REACT_APP_STAKING_PROXY_CONTRACT=n1jhAmtz6ZcUZzfAkE4tbedTHj6ngwzXviw REACT_APP_STAKING_MIN=5 -REACT_APP_CHAIN_ID=1 \ No newline at end of file +REACT_APP_CHAIN_ID=1 +REACT_APP_RELEASE_URL=https://github.com/nebulasio/dstaking-webclient/releases \ No newline at end of file diff --git a/public/locales/en/common.json b/public/locales/en/common.json index 625f3aa..c57c96f 100644 --- a/public/locales/en/common.json +++ b/public/locales/en/common.json @@ -1,4 +1,5 @@ { + "download":"Download offline client", "online staking": "Online staking", "offline staking": "Offline staking", "query": "Query status", diff --git a/public/locales/zh-CN/common.json b/public/locales/zh-CN/common.json index 8d9bacf..c80474e 100644 --- a/public/locales/zh-CN/common.json +++ b/public/locales/zh-CN/common.json @@ -1,4 +1,5 @@ { + "download":"下载离线页面", "online staking": "在线质押", "offline staking": "离线质押", "query": "查询", diff --git a/src/components/common/header/Header.js b/src/components/common/header/Header.js index 467acea..57e2b2d 100644 --- a/src/components/common/header/Header.js +++ b/src/components/common/header/Header.js @@ -14,7 +14,7 @@ import { DropdownItem } from 'reactstrap'; import styled from 'styled-components'; -import { IoIosGlobe } from "react-icons/io"; +import { IoIosGlobe, IoMdDownload } from "react-icons/io"; import { useTranslation } from 'react-i18next'; import logo from "assets/images/nax.png" @@ -56,7 +56,7 @@ const Wrapper = styled.div` function Header() { - const { t, i18n } = useTranslation(); + const { t, i18n } = useTranslation("common"); const [isOpen, setIsOpen] = useState(false); @@ -84,6 +84,9 @@ function Header() {