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 */}