Skip to content

Commit

Permalink
Fix: prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Mcastres committed Apr 17, 2024
1 parent 2ae1aa3 commit d652b90
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 31 deletions.
Expand Up @@ -260,7 +260,7 @@ const GuidedTourStepper = ({
* -----------------------------------------------------------------------------------------------*/

interface GuidedTourContentProps
extends Required<Pick<MessageDescriptor, 'defaultMessage' | 'id'>> { }
extends Required<Pick<MessageDescriptor, 'defaultMessage' | 'id'>> {}

const GuidedTourContent = ({ id, defaultMessage }: GuidedTourContentProps) => {
const { formatMessage } = useIntl();
Expand Down
Expand Up @@ -41,7 +41,8 @@ const LAYOUT_DATA = {
},
content: {
id: 'app.components.GuidedTour.CM.success-admin.content',
defaultMessage: "<p>Good job! That was easy right? Let's browse the Media Library now.</p><b>🖼️ Upload a Media</b>",
defaultMessage:
"<p>Good job! That was easy right? Let's browse the Media Library now.</p><b>🖼️ Upload a Media</b>",
},
cta: {
title: {
Expand Down
54 changes: 27 additions & 27 deletions packages/core/admin/admin/src/pages/ProfilePage.tsx
Expand Up @@ -351,9 +351,9 @@ const PasswordSection = ({ errors, onChange, values }: PasswordSectionProps) =>
error={
errors.currentPassword
? formatMessage({
id: errors.currentPassword,
defaultMessage: errors.currentPassword,
})
id: errors.currentPassword,
defaultMessage: errors.currentPassword,
})
: ''
}
onChange={onChange}
Expand All @@ -373,13 +373,13 @@ const PasswordSection = ({ errors, onChange, values }: PasswordSectionProps) =>
label={formatMessage(
currentPasswordShown
? {
id: 'Auth.form.password.show-password',
defaultMessage: 'Show password',
}
id: 'Auth.form.password.show-password',
defaultMessage: 'Show password',
}
: {
id: 'Auth.form.password.hide-password',
defaultMessage: 'Hide password',
}
id: 'Auth.form.password.hide-password',
defaultMessage: 'Hide password',
}
)}
>
{currentPasswordShown ? <Eye /> : <EyeStriked />}
Expand All @@ -394,9 +394,9 @@ const PasswordSection = ({ errors, onChange, values }: PasswordSectionProps) =>
error={
errors.password
? formatMessage({
id: errors.password,
defaultMessage: errors.password,
})
id: errors.password,
defaultMessage: errors.password,
})
: ''
}
onChange={onChange}
Expand All @@ -417,13 +417,13 @@ const PasswordSection = ({ errors, onChange, values }: PasswordSectionProps) =>
label={formatMessage(
passwordShown
? {
id: 'Auth.form.password.show-password',
defaultMessage: 'Show password',
}
id: 'Auth.form.password.show-password',
defaultMessage: 'Show password',
}
: {
id: 'Auth.form.password.hide-password',
defaultMessage: 'Hide password',
}
id: 'Auth.form.password.hide-password',
defaultMessage: 'Hide password',
}
)}
>
{passwordShown ? <Eye /> : <EyeStriked />}
Expand All @@ -436,9 +436,9 @@ const PasswordSection = ({ errors, onChange, values }: PasswordSectionProps) =>
error={
errors.confirmPassword
? formatMessage({
id: errors.confirmPassword,
defaultMessage: errors.confirmPassword,
})
id: errors.confirmPassword,
defaultMessage: errors.confirmPassword,
})
: ''
}
onChange={onChange}
Expand All @@ -459,13 +459,13 @@ const PasswordSection = ({ errors, onChange, values }: PasswordSectionProps) =>
label={formatMessage(
passwordConfirmShown
? {
id: 'Auth.form.password.show-password',
defaultMessage: 'Show password',
}
id: 'Auth.form.password.show-password',
defaultMessage: 'Show password',
}
: {
id: 'Auth.form.password.hide-password',
defaultMessage: 'Hide password',
}
id: 'Auth.form.password.hide-password',
defaultMessage: 'Hide password',
}
)}
>
{passwordConfirmShown ? <Eye /> : <EyeStriked />}
Expand Down
2 changes: 0 additions & 2 deletions packages/core/admin/admin/src/translations/en.json
Expand Up @@ -442,14 +442,12 @@
"app.components.GuidedTour.mediaLibrary.success.content": "<p>Awesome you are a pro! What about customizing your experience?</p>",
"app.components.GuidedTour.mediaLibrary.success.cta.title": "Manage your profile",
"app.components.GuidedTour.mediaLibrary.success.title": "Step 2: Completed ✅",

"app.components.GuidedTour.profile.create.title": "⚙️ Customize your experience",
"app.components.GuidedTour.profile.create.content": "<p>Customize your profile by changing the interface mode #darkModeForTheWin.</p>",
"app.components.GuidedTour.profile.create.cta.title": "Manage your profile",
"app.components.GuidedTour.profile.success.content": "<p>🎉 Congratulations! You can now invite more users to collaborate with you if you have the permission to add them. Feel free to go back to Light mode, we will not judge your choices...</p>",
"app.components.GuidedTour.profile.success.cta.title": "Go back to the homepage",
"app.components.GuidedTour.profile.success.title": "Step 3: Completed ✅",

"app.components.GuidedTour.create-content": "Create content",
"app.components.GuidedTour.home.CM.title": "⚡️ Create a first Entry",
"app.components.GuidedTour.home.CTB.cta.title": "Go to the Content type Builder",
Expand Down

0 comments on commit d652b90

Please sign in to comment.