Skip to content

Commit eeee679

Browse files
committed
fix: make the tap popup appear on every refresh
1 parent 4200c83 commit eeee679

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

app/components/Deposit/TapPopup.tsx

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,12 @@
1-
import React, { useState, useEffect } from "react";
1+
import React, { useState } from "react";
22
import Link from "next/link";
33
import { Cross, ArrowUpRight } from "../icons";
44

55
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-
}, []);
6+
const [isTapPopupVisible, setIsTapPopupVisible] = useState<boolean>(true);
147

158
const closePopup = () => {
169
setIsTapPopupVisible(false);
17-
localStorage.setItem("tapPopup", "true");
1810
};
1911

2012
return (

0 commit comments

Comments
 (0)