1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-06-30 13:51:42 +02:00
This commit is contained in:
Matthias Kretschmann 2020-08-26 20:36:18 +02:00
parent ef8814b622
commit f8fd5bb76f
Signed by: m
GPG Key ID: 606EEEF3C479A91F
4 changed files with 11 additions and 8 deletions

View File

@ -19,3 +19,11 @@
transform: scale(0.7);
transform-origin: right center;
}
.output {
text-align: center;
}
.output p {
font-weight: var(--font-weight-bold);
}

View File

@ -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>

View File

@ -7,7 +7,7 @@ export default function Header({
backAction
}: {
title: string
backAction: () => any
backAction: () => void
}): ReactElement {
return (
<header className={styles.header}>

View File

@ -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'