Skip to content

Commit

Permalink
Merge pull request #1 from nebulasio/develop
Browse files Browse the repository at this point in the history
add download client
  • Loading branch information
includeleec authored Sep 10, 2019
2 parents 316196a + e026ef6 commit 79d7ae3
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .env.development
Original file line number Diff line number Diff line change
Expand Up @@ -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
REACT_APP_CHAIN_ID=1001
REACT_APP_RELEASE_URL=https://github.com/nebulasio/dstaking-webclient/releases
3 changes: 2 additions & 1 deletion .env.production
Original file line number Diff line number Diff line change
Expand Up @@ -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
REACT_APP_CHAIN_ID=1
REACT_APP_RELEASE_URL=https://github.com/nebulasio/dstaking-webclient/releases
1 change: 1 addition & 0 deletions public/locales/en/common.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"download":"Download offline client",
"online staking": "Online staking",
"offline staking": "Offline staking",
"query": "Query status",
Expand Down
1 change: 1 addition & 0 deletions public/locales/zh-CN/common.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"download":"下载离线页面",
"online staking": "在线质押",
"offline staking": "离线质押",
"query": "查询",
Expand Down
7 changes: 5 additions & 2 deletions src/components/common/header/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -56,7 +56,7 @@ const Wrapper = styled.div`

function Header() {

const { t, i18n } = useTranslation();
const { t, i18n } = useTranslation("common");

const [isOpen, setIsOpen] = useState(false);

Expand Down Expand Up @@ -84,6 +84,9 @@ function Header() {
<NavbarToggler onClick={HandleToggle} />
<Collapse isOpen={isOpen} navbar>
<Nav className="ml-auto" navbar>
<NavItem>
<NavLink href={process.env.REACT_APP_RELEASE_URL}><IoMdDownload /> {t("download")}</NavLink>
</NavItem>
<UncontrolledDropdown nav inNavbar>
<DropdownToggle nav caret>
<IoIosGlobe /> {showCurrentLanguage()}
Expand Down

0 comments on commit 79d7ae3

Please sign in to comment.