mobile menu issue updated

This commit is contained in:
Selvi 2025-08-07 09:16:32 +05:30
parent cf70d82837
commit 56f83fb103
2 changed files with 8 additions and 8 deletions

View File

@ -3,7 +3,7 @@ import { useState } from 'react';
import Link from 'next/link'
export default function MobileMenu({ isMobileMenu, handleMobileMenu }: any) {
const [isAccordion, setIsAccordion] = useState(1)
const [isAccordion, setIsAccordion] = useState<number | null>(null);
const handleAccordion = (key: any) => {
setIsAccordion(prevState => prevState === key ? null : key)

View File

@ -167,13 +167,13 @@ ul.mobile-menu-sub.sub-menu-active{
}
span.submenu-button {
position: absolute;
width: 100%;
height: 44px;
top: 0;
left: 0;
z-index: 3;
transition: all .3s;
position: absolute;
top: 0;
right: 0;
width: 40px;
height: 44px;
z-index: 3;
cursor: pointer;
}
span.submenu-button:after, span.submenu-button:before {