mobile menu issue updated
This commit is contained in:
parent
cf70d82837
commit
56f83fb103
@ -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)
|
||||
|
||||
14
public/assets/css/vendor/mobile.css
vendored
14
public/assets/css/vendor/mobile.css
vendored
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user