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:
parent
f01f885884
commit
0695390c41
@ -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
|
||||
|
@ -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}
|
||||
|
@ -212,6 +212,7 @@ export default function Remove({
|
||||
loaderMessage="Removing Liquidity..."
|
||||
actionName={content.action}
|
||||
action={handleRemoveLiquidity}
|
||||
successMessage="Successfully removed liquidity."
|
||||
txId={txId}
|
||||
/>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user