Skip to content

Commit

Permalink
fix: pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
naumovski-filip committed Jul 17, 2023
1 parent 372e133 commit 9a98254
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
3 changes: 2 additions & 1 deletion public/locales/en/user.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,11 @@
"content_rating_helper": "Content 12+ will not be available for kids profiles",
"create": "Create profile",
"delete": "Delete profile",
"delete_main": "The main profile cannot be deleted.",
"delete_description": "Permanently delete your profile along with all of your watch history and favorites.",
"delete_main": "The main profile cannot be deleted.",
"description": "Profiles allow you to watch content and assemble your own personal collection of favorites.",
"greeting": "Howdy",
"greeting_with_name": "Howdy, {{name}}",
"info": "Profile info",
"kids": "Kids",
"name": "User name"
Expand Down
2 changes: 2 additions & 0 deletions public/locales/es/user.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,11 @@
"content_rating_helper": "",
"create": "",
"delete": "",
"delete_description": "",
"delete_main": "",
"description": "",
"greeting": "",
"greeting_with_name": "",
"info": "",
"kids": "",
"name": ""
Expand Down
5 changes: 1 addition & 4 deletions src/containers/Profiles/EditProfile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,7 @@ const EditProfile = ({ contained = false }: EditProfileProps) => {
<div className={styles.leftColumn}>
<div className={styles.panel}>
<div className={profileStyles.avatar}>
<h2>
{t('profile.greeting')}
{`${fullName && ','} ${fullName}`}
</h2>
<h2>{fullName ? t('profile.greeting_with_name', { fullName }) : t('profile.greeting')}</h2>
<img src={selectedAvatar || profileDetails?.avatar_url} />
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/containers/Profiles/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ const Form = ({ initialValues, formHandler, setFullName, selectedAvatar, showCan
</div>
</div>
<>
<Button type="submit" label="Save" variant="outlined" disabled={submitting} />
{showCancelButton && <Button onClick={() => navigate('/u/profiles')} label="Cancel" variant="text" />}
<Button type="submit" label={t('account.save')} variant="outlined" disabled={submitting} />
{showCancelButton && <Button onClick={() => navigate('/u/profiles')} label={t('account.cancel')} variant="text" />}
</>
</div>
</form>
Expand Down

0 comments on commit 9a98254

Please sign in to comment.