1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01: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: scale(0.7);
transform-origin: right center; 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 { 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>

View File

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

View File

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