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 7a44327 commit 071c23c
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 73 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
142 changes: 71 additions & 71 deletions src/components/Advanced.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,93 +161,93 @@ class Advanced extends React.Component {

return (
<div style={{marginTop:20}}>
<Flex alignItems='center' justifyContent='space-between' width={1}>
<Text>{t('currency.label')}</Text>
<Select items={CURRENCY.CURRENCY_LIST} onChange={this.updateCurrency} value={currency}/>
</Flex>
<hr style={{paddingTop:20}}/>
<div>
<div style={{width:"100%",textAlign:"center"}}><h5>Learn More</h5></div>
<div className="content ops row settings-row" style={{marginBottom:10}}>
<a href="https://github.com/leapdao/burner-wallet" style={{color:"#FFFFFF"}} target="_blank" rel="noopener noreferrer">
<BorderButton width={1}>
<Scaler config={{startZoomAt:400,origin:"50% 50%"}}>
<i className="fas fa-code"/> {t('code')}
</Scaler>
</BorderButton>
</a>
<a href="https://leapdao.org/" style={{color:"#FFFFFF"}} target="_blank" rel="noopener noreferrer">
<BorderButton width={1}>
<Scaler config={{startZoomAt:400,origin:"50% 50%"}}>
<i className="fas fa-info"/> {t('about')}
</Scaler>
</BorderButton>
</a>
</div>

<Flex alignItems='center' justifyContent='space-between' width={1}>
<Text>{t('currency.label')}</Text>
<Select items={CURRENCY.CURRENCY_LIST} onChange={this.updateCurrency} value={currency}/>
</Flex>
<hr style={{paddingTop:20}}/>

{privateKey && !isVendor &&
<div>
<div style={{width:"100%",textAlign:"center"}}>
<h5>Private Key</h5>
</div>
<div style={{width:"100%",textAlign:"center"}}><h5>Learn More</h5></div>
<div className="content ops row settings-row" style={{marginBottom:10}}>
<PrimaryButton width={1} onClick={()=>{
this.setState({privateKeyQr:!this.state.privateKeyQr})
}}>
<i className="fas fa-key"/> {t('show')}
</PrimaryButton>
<a href="https://github.com/leapdao/burner-wallet" style={{color:"#FFFFFF"}} target="_blank" rel="noopener noreferrer">
<BorderButton width={1}>
<Scaler config={{startZoomAt:400,origin:"50% 50%"}}>
<i className="fas fa-code"/> {t('code')}
</Scaler>
</BorderButton>
</a>
<a href="https://leapdao.org/" style={{color:"#FFFFFF"}} target="_blank" rel="noopener noreferrer">
<BorderButton width={1}>
<Scaler config={{startZoomAt:400,origin:"50% 50%"}}>
<i className="fas fa-info"/> {t('about')}
</Scaler>
</BorderButton>
</a>
</div>

<CopyToClipboard text={privateKey}>
<PrimaryButton width={1} onClick={() => changeAlert({type: 'success', message: 'Private Key copied to clipboard'})}>
<i className="fas fa-key"/> {t('copy')}
<hr style={{paddingTop:20}}/>

{privateKey && !isVendor &&
<div>
<div style={{width:"100%",textAlign:"center"}}>
<h5>Private Key</h5>
</div>
<div className="content ops row settings-row" style={{marginBottom:10}}>
<PrimaryButton width={1} onClick={()=>{
this.setState({privateKeyQr:!this.state.privateKeyQr})
}}>
<i className="fas fa-key"/> {t('show')}
</PrimaryButton>
</CopyToClipboard>

</div>
{privateKeyQrDisplay}
<CopyToClipboard text={privateKey}>
<PrimaryButton width={1} onClick={() => changeAlert({type: 'success', message: 'Private Key copied to clipboard'})}>
<i className="fas fa-key"/> {t('copy')}
</PrimaryButton>
</CopyToClipboard>

</div>
}
</div>
{privateKeyQrDisplay}

{privateKey &&
<div>
<div className="content ops row settings-row" >
<PrimaryButton width={1} onClick={()=>{
console.log("BALANCE",balance)
changeView('burn-wallet')
}}>
<Scaler config={{startZoomAt:400,origin:"50% 50%"}}>
<i className="fas fa-fire"/> {t('burn')}
</Scaler>
</PrimaryButton>
</div>
<hr style={{paddingTop:20}}/>
</div>}
}

{privateKey &&
<div>
<div className="content ops row settings-row" >
<PrimaryButton width={1} onClick={()=>{
console.log("BALANCE",balance)
changeView('burn-wallet')
}}>
<Scaler config={{startZoomAt:400,origin:"50% 50%"}}>
<i className="fas fa-fire"/> {t('burn')}
</Scaler>
</PrimaryButton>
</div>
<hr style={{paddingTop:20}}/>
</div>}

<div style={{width:"100%",textAlign:"center"}}><h5>Create Account</h5></div>

{inputPrivateKeyRow}
<div style={{width:"100%",textAlign:"center"}}><h5>Create Account</h5></div>

{inputSeedRow}
{inputPrivateKeyRow}

{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>
{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>
}
}

</div>
</div>
</div>
)
}
Expand Down

0 comments on commit 071c23c

Please sign in to comment.