feat: fix eslint limits to build

This commit is contained in:
HYana
2025-04-28 21:35:26 +08:00
parent 32f138bff5
commit 5c74bb41c9
15 changed files with 1886 additions and 1887 deletions
+21 -27
View File
@@ -1,36 +1,30 @@
"use client"
"use client";
import '@ant-design/v5-patch-for-react-19';
import styles from "./layout.module.css"
import "@ant-design/v5-patch-for-react-19";
import styles from "./layout.module.css";
import HomeSidebar from "@/app/home/components/home-sidebar/HomeSidebar";
import HomeTitleBar from "@/app/home/components/home-titlebar/HomeTitleBar";
import React, {useState} from "react";
import {SidebarChildVO} from "@/app/home/components/home-sidebar/HomeSidebarChild";
import { useRouter } from 'next/navigation';
import React, { useState } from "react";
import { SidebarChildVO } from "@/app/home/components/home-sidebar/HomeSidebarChild";
export default function HomeLayout({
children
children
}: Readonly<{
children: React.ReactNode;
children: React.ReactNode;
}>) {
const router = useRouter();
const [title, setTitle] = useState<string>("")
const onSelectedChange = (child: SidebarChildVO) => {
setTitle(child.name)
}
const [title, setTitle] = useState<string>("");
const onSelectedChange = (child: SidebarChildVO) => {
setTitle(child.name);
};
return (
<div className={`${styles.homeLayoutContainer}`}>
<HomeSidebar
onSelectedChange={onSelectedChange}
/>
<div className={`${styles.main}`}>
<HomeTitleBar title={title}/>
{/* 主页面 */}
<div className={`${styles.mainContent}`}>
{children}
</div>
</div>
</div>
)
return (
<div className={`${styles.homeLayoutContainer}`}>
<HomeSidebar onSelectedChangeAction={onSelectedChange} />
<div className={`${styles.main}`}>
<HomeTitleBar title={title} />
{/* 主页面 */}
<div className={`${styles.mainContent}`}>{children}</div>
</div>
</div>
);
}