From 84ac14c402faf9fb468c37ba5d656f91dd2615ab Mon Sep 17 00:00:00 2001 From: saithsab877 Date: Tue, 24 Sep 2024 21:23:11 +0500 Subject: [PATCH] fix(add-toast): added success toast --- src/components/ModalsContainer/CreateBountyModal/Body/index.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/ModalsContainer/CreateBountyModal/Body/index.tsx b/src/components/ModalsContainer/CreateBountyModal/Body/index.tsx index 7afda17c7..e45c695d7 100644 --- a/src/components/ModalsContainer/CreateBountyModal/Body/index.tsx +++ b/src/components/ModalsContainer/CreateBountyModal/Body/index.tsx @@ -1,5 +1,6 @@ import { useState } from 'react' import { FormProvider, useForm } from 'react-hook-form' +import { SuccessNotify } from '~/components/common/SuccessToast' import { postBountyData } from '~/network/postBounty' import { useSelectedNode } from '~/stores/useGraphStore' import { useModal } from '~/stores/useModalStore' @@ -39,6 +40,7 @@ export const Body = () => { try { await postBountyData(payload) + SuccessNotify('Bounty Created') // eslint-disable-next-line @typescript-eslint/no-explicit-any } catch (err: any) { setErrMessage(err)