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