Skip to content

Commit

Permalink
Merge pull request #118 from oasisprotocol/pro-wh/feature/about
Browse files Browse the repository at this point in the history
fill in About Us
  • Loading branch information
pro-wh committed Sep 7, 2021
2 parents 3a8e391 + c6cf4d9 commit 9018ff0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
15 changes: 10 additions & 5 deletions src/popup/pages/AboutUs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import record_arrow from "../../../assets/images/record_arrow.png";
import { getLanguage } from "../../../i18n";
import { openTab } from "../../../utils/commonMsg";
import CustomView from "../../component/CustomView";
import Toast from "../../component/Toast";
import "./index.scss";
class AboutUs extends React.Component {
constructor(props) {
Expand Down Expand Up @@ -58,15 +57,21 @@ class AboutUs extends React.Component {
</div>
)
}
onClickPrivacyPolicy = () => {
openTab('https://oasisprotocol.org/privacy-policy')
}
onClickGithub = () => {
Toast.info("Github")
openTab('https://github.com/oasisprotocol/oasis-wallet-ext/')
}
onClickContactUs = () => {
openTab('mailto:info@oasisprotocol.org')
}
renderWalletDetail = () => {
return (<div className={"wallet-detail-container"}>
{this.renderWalletItem(getLanguage("userPrivateProtocol"))}
{this.renderWalletItem(getLanguage("userPrivateProtocol"), this.onClickPrivacyPolicy)}
{this.renderWalletItem(getLanguage("userAgree"))}
{this.renderWalletItem("Github", this.onClickGithub)}
{this.renderWalletItem(getLanguage("contactUs"))}
{this.renderWalletItem("GitHub", this.onClickGithub)}
{this.renderWalletItem(getLanguage("contactUs"), this.onClickContactUs)}
</div>)
}
render() {
Expand Down
1 change: 0 additions & 1 deletion src/popup/pages/AboutUs/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@
color: #2c3451;
line-height: 20px;
margin-right: 18px;
width: 70px;
text-align: center;
}

Expand Down

0 comments on commit 9018ff0

Please sign in to comment.