fix: 修复 lint 错误
- 修复 Input/Textarea 组件中 React Hook 条件调用问题 - 修复 AboutSection 中的引号转义问题 - 更新 Input/Textarea 样式为医疗健康风格
This commit is contained in:
Vendored
+2
-1
@@ -1,7 +1,7 @@
|
||||
// This file is generated automatically by Next.js
|
||||
// Do not edit this file manually
|
||||
|
||||
type AppRoutes = "/" | "/about" | "/contact" | "/news" | "/news/[slug]" | "/products" | "/services"
|
||||
type AppRoutes = "/" | "/about" | "/cases/[id]" | "/contact" | "/news" | "/news/[slug]" | "/products" | "/services"
|
||||
type PageRoutes = never
|
||||
type LayoutRoutes = "/"
|
||||
type RedirectRoutes = never
|
||||
@@ -12,6 +12,7 @@ type Routes = AppRoutes | PageRoutes | LayoutRoutes | RedirectRoutes | RewriteRo
|
||||
interface ParamMap {
|
||||
"/": {}
|
||||
"/about": {}
|
||||
"/cases/[id]": { "id": string; }
|
||||
"/contact": {}
|
||||
"/news": {}
|
||||
"/news/[slug]": { "slug": string; }
|
||||
|
||||
@@ -45,6 +45,15 @@ type LayoutConfig<Route extends LayoutRoutes = LayoutRoutes> = {
|
||||
type __Unused = __Check
|
||||
}
|
||||
|
||||
// Validate ../../src/app/(marketing)/cases/[id]/page.tsx
|
||||
{
|
||||
type __IsExpected<Specific extends AppPageConfig<"/cases/[id]">> = Specific
|
||||
const handler = {} as typeof import("../../src/app/(marketing)/cases/[id]/page.js")
|
||||
type __Check = __IsExpected<typeof handler>
|
||||
// @ts-ignore
|
||||
type __Unused = __Check
|
||||
}
|
||||
|
||||
// Validate ../../src/app/(marketing)/contact/page.tsx
|
||||
{
|
||||
type __IsExpected<Specific extends AppPageConfig<"/contact">> = Specific
|
||||
|
||||
Reference in New Issue
Block a user