From 0ebcee9a6bdc4876ba54bc803d0ee86a431c5170 Mon Sep 17 00:00:00 2001 From: znn Date: Mon, 4 Aug 2025 07:44:57 +0530 Subject: [PATCH] fixing footer (#22927) --- web/app/components/apps/footer.tsx | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/web/app/components/apps/footer.tsx b/web/app/components/apps/footer.tsx index 7bee27234..18b777965 100644 --- a/web/app/components/apps/footer.tsx +++ b/web/app/components/apps/footer.tsx @@ -1,6 +1,6 @@ -import React from 'react' +import React, { useState } from 'react' import Link from 'next/link' -import { RiDiscordFill, RiGithubFill } from '@remixicon/react' +import { RiCloseLine, RiDiscordFill, RiGithubFill } from '@remixicon/react' import { useTranslation } from 'react-i18next' type CustomLinkProps = { @@ -26,9 +26,24 @@ const CustomLink = React.memo(({ const Footer = () => { const { t } = useTranslation() + const [isVisible, setIsVisible] = useState(true) + + const handleClose = () => { + setIsVisible(false) + } + + if (!isVisible) + return null return ( -