1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-11-15 01:34:57 +01:00

add/remove inputs

This commit is contained in:
Matthias Kretschmann 2020-08-26 09:01:43 +02:00
parent 63fe171dd7
commit 5e61123669
Signed by: m
GPG Key ID: 606EEEF3C479A91F
4 changed files with 32 additions and 15 deletions

View File

@ -1,2 +1,7 @@
.add {
}
.addInput {
max-width: 12rem;
margin: 0 auto var(--spacer) auto;
}

View File

@ -7,6 +7,7 @@ import { useOcean } from '@oceanprotocol/react'
import Header from './Header'
import Loader from '../../../atoms/Loader'
import { toast } from 'react-toastify'
import InputElement from '../../../atoms/Input/InputElement'
export default function Add({
setShowAdd,
@ -47,14 +48,16 @@ export default function Add({
<div className={styles.add}>
<Header title="Add Liquidity" backAction={() => setShowAdd(false)} />
<Input
name="ocean"
label="OCEAN"
type="number"
placeholder="0"
onChange={handleAmountChange}
/>
{/* <Input name="dt" label={dtSymbol} type="number" placeholder="0" /> */}
<div className={styles.addInput}>
<InputElement
value={amount}
name="ocean"
type="number"
prefix="OCEAN"
placeholder="0"
onChange={handleAmountChange}
/>
</div>
<p>You will receive:</p>

View File

@ -0,0 +1,4 @@
.removeInput {
max-width: 12rem;
margin: 0 auto var(--spacer) auto;
}

View File

@ -7,6 +7,7 @@ import { useOcean } from '@oceanprotocol/react'
import Header from './Header'
import { toast } from 'react-toastify'
import Loader from '../../../atoms/Loader'
import InputElement from '../../../atoms/Input/InputElement'
export default function Remove({
setShowRemove,
@ -51,13 +52,17 @@ export default function Remove({
backAction={() => setShowRemove(false)}
/>
<Input
name="ocean"
label="OCEAN"
type="number"
placeholder="0"
onChange={handleAmountChange}
/>
<div className={styles.removeInput}>
<InputElement
value={amount}
name="ocean"
type="number"
prefix="OCEAN"
placeholder="0"
onChange={handleAmountChange}
/>
</div>
{/* <Input name="dt" label={dtSymbol} type="number" placeholder="0" /> */}
<p>You will receive:</p>