Fix Login KodeOtp WA

This commit is contained in:
2026-02-26 22:10:28 +08:00
parent 55ea3c473a
commit 409ad4f1a2
8 changed files with 68 additions and 25 deletions

View File

@@ -316,8 +316,13 @@ export default function Layout({ children }: { children: React.ReactNode }) {
}}
variant="light"
active={isParentActive}
onClick={(e) => {
e.preventDefault();
if (v.path) handleNavClick(v.path);
}}
href={v.path || undefined}
>
{v.children.map((child, key) => {
{v.children?.map((child, key) => {
const isChildActive = segments.includes(_.lowerCase(child.name));
return (
<NavLink