We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4200c83 commit eeee679Copy full SHA for eeee679
app/components/Deposit/TapPopup.tsx
@@ -1,20 +1,12 @@
1
-import React, { useState, useEffect } from "react";
+import React, { useState } from "react";
2
import Link from "next/link";
3
import { Cross, ArrowUpRight } from "../icons";
4
5
const TapPopup: React.FC = () => {
6
- const [isTapPopupVisible, setIsTapPopupVisible] = useState<boolean>(false);
7
-
8
- useEffect(() => {
9
- const popupClosed = localStorage.getItem("tapPopup");
10
- if (popupClosed === null) {
11
- setIsTapPopupVisible(true);
12
- }
13
- }, []);
+ const [isTapPopupVisible, setIsTapPopupVisible] = useState<boolean>(true);
14
15
const closePopup = () => {
16
setIsTapPopupVisible(false);
17
- localStorage.setItem("tapPopup", "true");
18
};
19
20
return (
0 commit comments