1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

fix remove liquidity message

This commit is contained in:
Matthias Kretschmann 2020-10-28 13:02:24 +01:00
parent f01f885884
commit 0695390c41
Signed by: m
GPG Key ID: 606EEEF3C479A91F
3 changed files with 5 additions and 1 deletions

View File

@ -9,12 +9,14 @@ import { useOcean } from '@oceanprotocol/react'
export default function Actions({
isLoading,
loaderMessage,
successMessage,
txId,
actionName,
action
}: {
isLoading: boolean
loaderMessage: string
successMessage: string
txId: string
actionName: string
action: () => void
@ -39,7 +41,7 @@ export default function Actions({
</div>
{txId && (
<SuccessConfetti
success="Successfully added liquidity."
success={successMessage}
action={
<EtherscanLink networkId={networkId} path={`/tx/${txId}`}>
See on Etherscan

View File

@ -163,6 +163,7 @@ export default function Add({
<Actions
isLoading={isSubmitting}
loaderMessage="Adding Liquidity..."
successMessage="Successfully added liquidity."
actionName={content.action}
action={submitForm}
txId={txId}

View File

@ -212,6 +212,7 @@ export default function Remove({
loaderMessage="Removing Liquidity..."
actionName={content.action}
action={handleRemoveLiquidity}
successMessage="Successfully removed liquidity."
txId={txId}
/>
</div>