Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Update Space onboarding profile fields

Anand Baburajancbd7a0698fa5
diff --git a/web/apps/space/src/screens/SetupProfileScreen.tsx b/web/apps/space/src/screens/SetupProfileScreen.tsx
index 3e84007a67..c57443341e 100644
--- a/web/apps/space/src/screens/SetupProfileScreen.tsx
+++ b/web/apps/space/src/screens/SetupProfileScreen.tsx
@@ -279,7 +279,6 @@ export const SetupProfileScreen: React.FC<SetupProfileScreenProps> = ({
!isApplyingAvatarCrop &&
!isPreparingAvatar &&
usernameStatus != "unavailable" &&
- Boolean(avatarUrl) &&
username.trim().length > 0 &&
fullName.trim().length > 0;
const isContinueButtonActive = canContinue || isSubmitting;
@@ -610,23 +609,23 @@ export const SetupProfileScreen: React.FC<SetupProfileScreenProps> = ({
width: "100%",
}}
>
- <TextInput
- label="Name"
- onChange={setFullName}
- placeholder="Enter your name"
- required
- value={fullName}
- />
<TextInput
endAdornment={
<UsernameStatusIcon status={usernameStatus} />
}
label="Username"
onChange={handleUsernameChange}
- placeholder="Choose your public username"
+ placeholder="Choose your username"
required
value={username}
/>
+ <TextInput
+ label="Name"
+ onChange={setFullName}
+ placeholder="Enter your name"
+ required
+ value={fullName}
+ />
{(avatarError || errorMessage) && (
<Box
role="alert"