Skip to content

Commit

Permalink
Update changes
Browse files Browse the repository at this point in the history
  • Loading branch information
iamonuwa committed Jul 19, 2019
1 parent e9138d1 commit db64fcf
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
5 changes: 3 additions & 2 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ let mainStyle = {
mainColor:"white",
}

// let title = t('app_name')
let title = 'Burner Wallet'
let titleImage = (
<span style={{paddingRight:20,paddingLeft:16}}><i className="fas fa-fire" /></span>
)
Expand Down Expand Up @@ -101,6 +101,7 @@ const Warning = styled(Text).attrs(()=>({
export default class App extends Component {
constructor(props) {

console.log('Props ', props)

let view = 'main'
let cachedView = getStoredValue("view")
Expand All @@ -121,7 +122,7 @@ export default class App extends Component {
sendKey: "",
alert: null,
loadingTitle:'loading...',
title: props.t('title'),
title,
extraHeadroom:0,
balance: 0.00,
vendors: {},
Expand Down
29 changes: 15 additions & 14 deletions src/components/Advanced.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class Advanced extends React.Component {

render(){
let {isVendor, balance, privateKey, changeAlert, changeView, setPossibleNewPrivateKey, t} = this.props
let { currency } = this.state
let { currency, expertMode } = this.state

let url = window.location.protocol+"//"+window.location.hostname
if(window.location.port&&window.location.port!==80&&window.location.port!==443){
Expand Down Expand Up @@ -162,7 +162,7 @@ class Advanced extends React.Component {
return (
<div style={{marginTop:20}}>
<Flex py={3} alignItems='center' justifyContent='space-between'>
<Text>{i18n.t('currency.label')}</Text>
<Text>{t('currency.label')}</Text>
<Select items={CURRENCY.CURRENCY_LIST} onChange={this.updateCurrency} value={currency}/>
</Flex>
<Flex py={3} alignItems='center' justifyContent='space-between'>
Expand All @@ -178,14 +178,14 @@ class Advanced extends React.Component {
<a href={LINKS.CODE} style={{color:"#FFFFFF"}} target="_blank" rel="noopener noreferrer">
<BorderButton width={1}>
<Scaler config={{startZoomAt:400,origin:"50% 50%"}}>
<i className="fas fa-code"/> {i18n.t('code')}
<i className="fas fa-code"/> {t('code')}
</Scaler>
</BorderButton>
</a>
<a href={LINKS.ABOUT} style={{color:"#FFFFFF"}} target="_blank" rel="noopener noreferrer">
<BorderButton width={1}>
<Scaler config={{startZoomAt:400,origin:"50% 50%"}}>
<i className="fas fa-info"/> {i18n.t('about')}
<i className="fas fa-info"/> {t('about')}
</Scaler>
</BorderButton>
</a>
Expand Down Expand Up @@ -241,18 +241,19 @@ class Advanced extends React.Component {
{inputSeedRow}

{isVendor &&
<div>
<div className="content ops row settings-row" style={{marginBottom:10}}>
<PrimaryButton width={1} onClick={()=>{
this.props.changeView("exchange")
}}>
<Scaler config={{startZoomAt:400,origin:"50% 50%"}}>
<i className="fas fa-key"/> {"Exchange"}
</Scaler>
</PrimaryButton>
</div>
<div>
<div className="content ops row settings-row" style={{marginBottom:10}}>
<PrimaryButton width={1} onClick={()=>{
this.props.changeView("exchange")
}}>
<Scaler config={{startZoomAt:400,origin:"50% 50%"}}>
<i className="fas fa-key"/> {"Exchange"}
</Scaler>
</PrimaryButton>
</div>
</div>
}

</div>
)
}
Expand Down

0 comments on commit db64fcf

Please sign in to comment.