diff --git a/apps/web/src/app/dashboard/settings/profile/page.tsx b/apps/web/src/app/dashboard/settings/profile/page.tsx index 3192b7e..f949fe1 100644 --- a/apps/web/src/app/dashboard/settings/profile/page.tsx +++ b/apps/web/src/app/dashboard/settings/profile/page.tsx @@ -4,7 +4,7 @@ import { Button } from '@tpmjs/ui/Button/Button'; import { Icon } from '@tpmjs/ui/Icon/Icon'; import Link from 'next/link'; import { useSearchParams } from 'next/navigation'; -import { useCallback, useEffect, useState } from 'react'; +import { Suspense, useCallback, useEffect, useState } from 'react'; import { DashboardLayout } from '~/components/dashboard/DashboardLayout'; interface UserProfile { @@ -21,10 +21,7 @@ interface UsernameCheckResult { reason?: string; } -export default function ProfileSettingsPage(): React.ReactElement { - const searchParams = useSearchParams(); - const isSetupMode = searchParams.get('setup') === '1'; - +function ProfileSettingsContent({ isSetupMode }: { isSetupMode: boolean }): React.ReactElement { const [profile, setProfile] = useState(null); const [isLoading, setIsLoading] = useState(true); const [error, setError] = useState(null); @@ -335,3 +332,26 @@ export default function ProfileSettingsPage(): React.ReactElement { ); } + +function ProfileSettingsWithSearchParams(): React.ReactElement { + const searchParams = useSearchParams(); + const isSetupMode = searchParams.get('setup') === '1'; + return ; +} + +export default function ProfileSettingsPage(): React.ReactElement { + return ( + +
+
+
+
+ + } + > + + + ); +}