mirror of
https://github.com/dap-ps/discover.git
synced 2025-01-31 11:35:18 +00:00
Begin fixing withdraws & cleaning
This commit is contained in:
parent
64c3624135
commit
9e8531e6bf
@ -74,8 +74,6 @@ class Vote extends Component {
|
|||||||
return <Modal visible={false} onClickClose={onClickClose} />
|
return <Modal visible={false} onClickClose={onClickClose} />
|
||||||
}
|
}
|
||||||
|
|
||||||
//const catPosition = dapp.categoryPosition
|
|
||||||
// const upvoteSNTcost = currentSNTamount + parseInt(sntValue, 10)
|
|
||||||
const currentSNTamount = dapp.sntValue
|
const currentSNTamount = dapp.sntValue
|
||||||
const dappsByCategory = dappState.getDappsByCategory(dapp.category)
|
const dappsByCategory = dappState.getDappsByCategory(dapp.category)
|
||||||
|
|
||||||
@ -187,10 +185,7 @@ class Vote extends Component {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{!isUpvote && (
|
{!isUpvote && (
|
||||||
<div
|
<div className={styles.inputArea}>
|
||||||
className={styles.inputArea}
|
|
||||||
// style={{ opacity: sntValue !== '0' ? 1 : 0 }}
|
|
||||||
>
|
|
||||||
<span>{sntValue}</span>
|
<span>{sntValue}</span>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
@ -54,7 +54,7 @@ class Withdraw extends React.Component {
|
|||||||
|
|
||||||
const currentSNTamount = dapp.sntValue
|
const currentSNTamount = dapp.sntValue
|
||||||
const dappsByCategory = dappState.getDappsByCategory(dapp.category)
|
const dappsByCategory = dappState.getDappsByCategory(dapp.category)
|
||||||
const afterVoteRating = sntValue !== '' ? parseInt(sntValue, 10) : 0
|
const afterVoteRating = withdrawMax // TODO: make this dynamic
|
||||||
|
|
||||||
let catPosition = dappsByCategory.length
|
let catPosition = dappsByCategory.length
|
||||||
for (let i = 0; i < dappsByCategory.length; ++i) {
|
for (let i = 0; i < dappsByCategory.length; ++i) {
|
||||||
@ -122,7 +122,7 @@ class Withdraw extends React.Component {
|
|||||||
<div className={`${styles.inputArea} ${styles.inputAreaBorder}`}>
|
<div className={`${styles.inputArea} ${styles.inputAreaBorder}`}>
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
value={!sntValue && sntValue !== 0 ? withdrawMax : sntValue}
|
value={sntValue !== 0 ? sntValue : withdrawMax}
|
||||||
onChange={this.handleSNTChange}
|
onChange={this.handleSNTChange}
|
||||||
style={{ width: `${21 * Math.max(1, sntValue.length)}px` }}
|
style={{ width: `${21 * Math.max(1, sntValue.length)}px` }}
|
||||||
/>
|
/>
|
||||||
|
@ -32,7 +32,7 @@ export const showWithdrawAction = dapp => {
|
|||||||
) {
|
) {
|
||||||
dispatch(
|
dispatch(
|
||||||
showAlertAction(
|
showAlertAction(
|
||||||
'There is an active transaction. Please wait for it to finish and then you could be able to create your Ðapp',
|
'There is a pending transaction. Please wait for it to finish and then you will be able to submit your Ðapp',
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
@ -58,7 +58,7 @@ export const withdrawAction = (dapp, sntValue) => {
|
|||||||
onStartProgressAction(
|
onStartProgressAction(
|
||||||
dapp.name,
|
dapp.name,
|
||||||
dapp.image,
|
dapp.image,
|
||||||
'Status is an open source mobile DApp browser and messenger build for #Etherium',
|
dapp.description,
|
||||||
TYPE_WITHDRAW,
|
TYPE_WITHDRAW,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user