From bdf45b18748c467b8398a9863f9da8e2e12cf3c4 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Mon, 17 Nov 2025 02:50:43 +0000 Subject: [PATCH] completionId: cgen-20c654c613e94b4ea8ea62f8b0d587f3 cgen-20c654c613e94b4ea8ea62f8b0d587f3 --- .../components/onboarding/CreatorProfile.tsx | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/client/components/onboarding/CreatorProfile.tsx b/client/components/onboarding/CreatorProfile.tsx index fec4555f..076f9051 100644 --- a/client/components/onboarding/CreatorProfile.tsx +++ b/client/components/onboarding/CreatorProfile.tsx @@ -128,6 +128,39 @@ export default function CreatorProfile({ return (
+ {/* Username Section */} +
+
+ +
+ + @ + + { + const cleanedUsername = e.target.value + .toLowerCase() + .replace(/[^a-z0-9_-]/g, "") + .replace(/^-+|-+$/g, ""); + updateData({ username: cleanedUsername }); + }} + placeholder="your-creator-name" + maxLength={32} + className="pl-7 bg-gray-900/50 border-gray-700" + /> +
+

+ {(data?.username || "").length}/32 characters. Lowercase letters, numbers, hyphens, and underscores only. +

+ {(data?.username?.length || 0) === 0 && ( +

Username is required

+ )} +
+
+ {/* Bio Section */}