Skip to content

Commit dc5c295

Browse files
committed
Fix chakra form issue
1 parent e4ec8df commit dc5c295

File tree

3 files changed

+260
-222
lines changed

3 files changed

+260
-222
lines changed

apps/dashboard/src/app/(dashboard)/dashboard/connect/ecosystem/create/components/client/create-ecosystem-form.client.tsx

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -131,23 +131,16 @@ export function CreateEcosystemForm(props: {
131131
defaultValue="PARTNER_WHITELIST"
132132
className="flex flex-wrap gap-4 py-2"
133133
>
134-
<FormItem>
135-
<FormControl>
136-
<RadioGroupItemButton
137-
value="PARTNER_WHITELIST"
138-
id="PARTNER_WHITELIST"
139-
>
140-
Allowlist
141-
</RadioGroupItemButton>
142-
</FormControl>
143-
</FormItem>
144-
<FormItem>
145-
<FormControl>
146-
<RadioGroupItemButton value="ANYONE" id="ANYONE">
147-
Public
148-
</RadioGroupItemButton>
149-
</FormControl>
150-
</FormItem>
134+
<RadioGroupItemButton
135+
value="PARTNER_WHITELIST"
136+
id="PARTNER_WHITELIST"
137+
>
138+
Allowlist
139+
</RadioGroupItemButton>
140+
141+
<RadioGroupItemButton value="ANYONE" id="ANYONE">
142+
Public
143+
</RadioGroupItemButton>
151144
</RadioGroup>
152145
</FormControl>
153146
<FormDescription>

apps/dashboard/src/app/login/page.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
import { ColorModeToggle } from "@/components/color-mode-toggle";
44
import { useThirdwebClient } from "@/constants/thirdweb.client";
55
import { useDashboardRouter } from "@/lib/DashboardRouter";
6+
import { useAccount } from "@3rdweb-sdk/react/hooks/useApi";
7+
import { getAccountPreferences } from "lib/onboarding";
68
import { useTheme } from "next-themes";
79
import { useSearchParams } from "next/navigation";
810
import { Suspense, useEffect, useState } from "react";
@@ -11,8 +13,6 @@ import { getCookie } from "../../stores/SyncStoreToCookies";
1113
import { ThirdwebMiniLogo } from "../components/ThirdwebMiniLogo";
1214
import { getSDKTheme } from "../components/sdk-component-theme";
1315
import { doLogin, doLogout, getLoginPayload, isLoggedIn } from "./auth-actions";
14-
import { getAccountPreferences } from "lib/onboarding";
15-
import { useAccount } from "@3rdweb-sdk/react/hooks/useApi";
1616

1717
export default function LoginPage() {
1818
return (
@@ -59,6 +59,8 @@ function CustomConnectEmmbed() {
5959
accountId: account.data.id,
6060
});
6161

62+
console.log(account.data.email);
63+
6264
if (!existingAccountPreferences) {
6365
router.replace(
6466
`/onboarding?${account.data.email ? `email=${account.data.email}` : ""}`,

0 commit comments

Comments
 (0)