Skip to content

Commit

Permalink
patch: disable banner (#1073)
Browse files Browse the repository at this point in the history
  • Loading branch information
tinashechiraya authored Sep 2, 2024
1 parent 434d15f commit 115d8b1
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ import React, { useState, useEffect } from 'react';
import { AiOutlineClose } from 'react-icons/ai';

const Banner: React.FC = () => {
const [visible, setVisible] = useState(true);
const [visible, setVisible] = useState(false);

useEffect(() => {
const timer = setTimeout(() => {
setVisible(false);
}, 15000);
if(visible)
const timer = setTimeout(() => {
setVisible(false);
}, 15000);

return () => clearTimeout(timer);
}, []);
Expand Down

0 comments on commit 115d8b1

Please sign in to comment.