diff --git a/src/context/WalletConnectContext.tsx b/src/context/WalletConnectContext.tsx
index 6b2cd59..b2d4fec 100644
--- a/src/context/WalletConnectContext.tsx
+++ b/src/context/WalletConnectContext.tsx
@@ -8,7 +8,7 @@ import React, {
useCallback,
useRef,
} from "react";
-import { SnackbarProvider, enqueueSnackbar } from "notistack";
+import { enqueueSnackbar } from "notistack";
import { useNavigate } from "react-router-dom";
import SignClient from "@walletconnect/sign-client";
@@ -160,7 +160,6 @@ export const WalletConnectProvider = ({
>
{children}
-
>
);
};
diff --git a/src/index.tsx b/src/index.tsx
index f8fdf20..88fb39f 100644
--- a/src/index.tsx
+++ b/src/index.tsx
@@ -1,6 +1,11 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import { Buffer } from "buffer";
+import { closeSnackbar, SnackbarProvider } from 'notistack';
+
+import CloseIcon from '@mui/icons-material/Close';
+import { IconButton } from '@mui/material';
+
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
@@ -8,11 +13,25 @@ import reportWebVitals from './reportWebVitals';
const root = ReactDOM.createRoot(
document.getElementById('root') as HTMLElement
);
+
+function SnackbarCloseButton({ key } : any) {
+
+ return (
+ closeSnackbar(key)}>
+
+
+ );
+}
+
// Reference: https://github.com/vitejs/vite/discussions/2785#discussion-3298776
globalThis.Buffer = Buffer;
root.render(
-
+ }
+ >
+
+
);
diff --git a/src/pages/OnboardingSuccess.tsx b/src/pages/OnboardingSuccess.tsx
index 4249e83..a180a52 100644
--- a/src/pages/OnboardingSuccess.tsx
+++ b/src/pages/OnboardingSuccess.tsx
@@ -1,5 +1,5 @@
import React, { useEffect, useState } from "react";
-import { SnackbarProvider, enqueueSnackbar } from "notistack";
+import { enqueueSnackbar } from "notistack";
import { useLocation } from "react-router-dom";
import { Box, Typography } from "@mui/material";
@@ -114,7 +114,6 @@ const OnboardingSuccess = () => {
onMessage={messageHandler}
/>
)}
-
);
};
diff --git a/src/pages/SignWithCosmos.tsx b/src/pages/SignWithCosmos.tsx
index 431af88..d8ea671 100644
--- a/src/pages/SignWithCosmos.tsx
+++ b/src/pages/SignWithCosmos.tsx
@@ -1,6 +1,6 @@
import React, { useCallback, useEffect, useMemo, useState } from "react";
import { useLocation, useNavigate } from "react-router-dom";
-import { SnackbarProvider, enqueueSnackbar } from "notistack";
+import { enqueueSnackbar } from "notistack";
import { Box, Card, CardContent, Grid, Typography } from "@mui/material";
import LoadingButton from "@mui/lab/LoadingButton/LoadingButton";
@@ -205,7 +205,6 @@ const SignWithCosmos = () => {
Send transaction
-
);
};
diff --git a/src/pages/SignWithNitroKey.tsx b/src/pages/SignWithNitroKey.tsx
index 5626fb3..e2c9134 100644
--- a/src/pages/SignWithNitroKey.tsx
+++ b/src/pages/SignWithNitroKey.tsx
@@ -1,6 +1,6 @@
import React, { useState, useMemo, useEffect } from "react";
import { useNavigate } from "react-router-dom";
-import { SnackbarProvider, enqueueSnackbar } from "notistack";
+import { enqueueSnackbar } from "notistack";
import canonicalStringify from "canonical-json";
import {
@@ -136,7 +136,6 @@ const SignWithNitroKey = () => {
Sign using Nitro key
-
) : (
<>Loading...>