mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
cleanup
This commit is contained in:
parent
ef8814b622
commit
f8fd5bb76f
@ -19,3 +19,11 @@
|
|||||||
transform: scale(0.7);
|
transform: scale(0.7);
|
||||||
transform-origin: right center;
|
transform-origin: right center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.output {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.output p {
|
||||||
|
font-weight: var(--font-weight-bold);
|
||||||
|
}
|
||||||
|
@ -11,10 +11,6 @@ import Token from './Token'
|
|||||||
import { Balance } from './'
|
import { Balance } from './'
|
||||||
import PriceUnit from '../../../atoms/Price/PriceUnit'
|
import PriceUnit from '../../../atoms/Price/PriceUnit'
|
||||||
|
|
||||||
function calculatePercent(percent: number, num: number) {
|
|
||||||
return (percent / 100) * num
|
|
||||||
}
|
|
||||||
|
|
||||||
export default function Add({
|
export default function Add({
|
||||||
setShowAdd,
|
setShowAdd,
|
||||||
poolAddress,
|
poolAddress,
|
||||||
@ -80,8 +76,8 @@ export default function Add({
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div className={styles.output}>
|
||||||
<p>You will receive:</p>
|
<p>You will receive</p>
|
||||||
<Token symbol="BPT" balance={newPoolTokens} />
|
<Token symbol="BPT" balance={newPoolTokens} />
|
||||||
<Token symbol="% of pool" balance={newPoolShare} />
|
<Token symbol="% of pool" balance={newPoolShare} />
|
||||||
</div>
|
</div>
|
||||||
|
@ -7,7 +7,7 @@ export default function Header({
|
|||||||
backAction
|
backAction
|
||||||
}: {
|
}: {
|
||||||
title: string
|
title: string
|
||||||
backAction: () => any
|
backAction: () => void
|
||||||
}): ReactElement {
|
}): ReactElement {
|
||||||
return (
|
return (
|
||||||
<header className={styles.header}>
|
<header className={styles.header}>
|
||||||
|
@ -2,7 +2,6 @@ import React, { ReactElement, useState, ChangeEvent } from 'react'
|
|||||||
import styles from './Remove.module.css'
|
import styles from './Remove.module.css'
|
||||||
import stylesIndex from './index.module.css'
|
import stylesIndex from './index.module.css'
|
||||||
import Button from '../../../atoms/Button'
|
import Button from '../../../atoms/Button'
|
||||||
import Input from '../../../atoms/Input'
|
|
||||||
import { useOcean } from '@oceanprotocol/react'
|
import { useOcean } from '@oceanprotocol/react'
|
||||||
import Header from './Header'
|
import Header from './Header'
|
||||||
import { toast } from 'react-toastify'
|
import { toast } from 'react-toastify'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user