From 0b871be12995b94d9486ba0a9c8478f05ad2a747 Mon Sep 17 00:00:00 2001 From: dappbeast Date: Tue, 4 Apr 2023 14:33:59 +1000 Subject: [PATCH] fix: tx error handling bugs --- .../components/dev/ModalDemoCard/index.tsx | 18 +---- .../{useTransaction.ts => useTransaction.tsx} | 45 ++++++----- ui/components/Toast/index.tsx | 75 ++++++++----------- 3 files changed, 62 insertions(+), 76 deletions(-) rename app/src/hooks/account/{useTransaction.ts => useTransaction.tsx} (93%) diff --git a/app/src/components/dev/ModalDemoCard/index.tsx b/app/src/components/dev/ModalDemoCard/index.tsx index 8e4fd942..9c67295c 100644 --- a/app/src/components/dev/ModalDemoCard/index.tsx +++ b/app/src/components/dev/ModalDemoCard/index.tsx @@ -5,7 +5,7 @@ import { IconType } from '@lyra/ui/components/Icon' import Modal from '@lyra/ui/components/Modal' import ModalBody from '@lyra/ui/components/Modal/ModalBody' import Text from '@lyra/ui/components/Text' -import { createPendingToast, createToast } from '@lyra/ui/components/Toast' +import { createToast } from '@lyra/ui/components/Toast' import { MarginProps } from '@lyra/ui/types' import React, { useState } from 'react' @@ -190,22 +190,6 @@ export default function ModalDemoCard({ ...marginProps }: MarginProps): CardElem }) }} /> -