diff --git a/apps/dm_new/app/(with-layout)/apply/register/page.tsx b/apps/dm_new/app/(with-layout)/apply/register/page.tsx index 2269ecb54..c37912b97 100644 --- a/apps/dm_new/app/(with-layout)/apply/register/page.tsx +++ b/apps/dm_new/app/(with-layout)/apply/register/page.tsx @@ -8,7 +8,7 @@ */ "use client"; -import { useEffect, useMemo, useRef, useState } from "react"; +import { Suspense, useEffect, useMemo, useRef, useState } from "react"; import { useRouter, useSearchParams } from "next/navigation"; import { useDmStore } from "@/app/store"; import type { DemandCompBizType } from "@/app/store/sdmMng"; @@ -72,7 +72,7 @@ const getSessionUser = (): SessionUser | null => { } }; -export default function DemandRegisterPage() { +function DemandRegisterPageContent() { const router = useRouter(); const searchParams = useSearchParams(); const { insertSdmInfoData, Sdm } = useDmStore((state) => state); @@ -558,6 +558,14 @@ export default function DemandRegisterPage() { ); } +export default function DemandRegisterPage() { + return ( + Loading...}> + + + ); +} + /* ----------------------------- UI helpers ----------------------------- */ function Divider() { diff --git a/apps/dm_new/eslint.config.mjs b/apps/dm_new/eslint.config.mjs index f5e14ab2c..9201e16dd 100644 --- a/apps/dm_new/eslint.config.mjs +++ b/apps/dm_new/eslint.config.mjs @@ -24,6 +24,7 @@ const eslintConfig = [ {rules:{ // other rules.. "@typescript-eslint/no-explicit-any": "off", + "@next/next/no-img-element": "off", ...(isProd ? { "react-hooks/exhaustive-deps": "off" } : {}), }}, ]; diff --git a/apps/dm_new/next.config.ts b/apps/dm_new/next.config.ts index ce442e1de..5b5bf85da 100644 --- a/apps/dm_new/next.config.ts +++ b/apps/dm_new/next.config.ts @@ -1,5 +1,5 @@ import type { NextConfig } from "next"; -import path from "path"; +// import path from "path"; const subDomain = process.env.NEXT_PUBLIC_PROXY_HOST || "http://localhost:3000";