From ed51e76db8a850dba876fc6287e4c33b4fcb9099 Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 23 May 2023 12:27:07 +0200 Subject: [PATCH] clear receipts list --- apps/etherscan/src/app/views/ReceiptsView.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/etherscan/src/app/views/ReceiptsView.tsx b/apps/etherscan/src/app/views/ReceiptsView.tsx index 7878e254ec..f1643ac3ad 100644 --- a/apps/etherscan/src/app/views/ReceiptsView.tsx +++ b/apps/etherscan/src/app/views/ReceiptsView.tsx @@ -6,6 +6,7 @@ import { Receipt } from "../types" import { AppContext } from "../AppContext" import { SubmitButton } from "../components" import { Navigate } from "react-router-dom" +import { Button } from "react-bootstrap" interface FormValues { receiptGuid: string @@ -47,7 +48,7 @@ export const ReceiptsView: React.FC = () => { return ( - {({ apiKey, clientInstance, receipts }) => { + {({ apiKey, clientInstance, receipts, setReceipts }) => { if (!apiKey && clientInstance && clientInstance.call) clientInstance.call('notification' as any, 'toast', 'Please add API key to continue') return !apiKey ? ( { /> + ) }