From d652b907228511152f2b1aef4f8cca2b3301068d Mon Sep 17 00:00:00 2001 From: Maxime Castres Date: Wed, 17 Apr 2024 16:55:48 +0200 Subject: [PATCH] Fix: prettier --- .../admin/src/components/GuidedTour/Modal.tsx | 2 +- .../src/components/GuidedTour/constants.ts | 3 +- .../admin/admin/src/pages/ProfilePage.tsx | 54 +++++++++---------- .../core/admin/admin/src/translations/en.json | 2 - 4 files changed, 30 insertions(+), 31 deletions(-) diff --git a/packages/core/admin/admin/src/components/GuidedTour/Modal.tsx b/packages/core/admin/admin/src/components/GuidedTour/Modal.tsx index 5ec420cb1cbf..c8853acec1cb 100644 --- a/packages/core/admin/admin/src/components/GuidedTour/Modal.tsx +++ b/packages/core/admin/admin/src/components/GuidedTour/Modal.tsx @@ -260,7 +260,7 @@ const GuidedTourStepper = ({ * -----------------------------------------------------------------------------------------------*/ interface GuidedTourContentProps - extends Required> { } + extends Required> {} const GuidedTourContent = ({ id, defaultMessage }: GuidedTourContentProps) => { const { formatMessage } = useIntl(); diff --git a/packages/core/admin/admin/src/components/GuidedTour/constants.ts b/packages/core/admin/admin/src/components/GuidedTour/constants.ts index be1eaf0b2cf0..460472988586 100644 --- a/packages/core/admin/admin/src/components/GuidedTour/constants.ts +++ b/packages/core/admin/admin/src/components/GuidedTour/constants.ts @@ -41,7 +41,8 @@ const LAYOUT_DATA = { }, content: { id: 'app.components.GuidedTour.CM.success-admin.content', - defaultMessage: "

Good job! That was easy right? Let's browse the Media Library now.

🖼️ Upload a Media", + defaultMessage: + "

Good job! That was easy right? Let's browse the Media Library now.

🖼️ Upload a Media", }, cta: { title: { diff --git a/packages/core/admin/admin/src/pages/ProfilePage.tsx b/packages/core/admin/admin/src/pages/ProfilePage.tsx index 11d9031bcd7a..af872eff1169 100644 --- a/packages/core/admin/admin/src/pages/ProfilePage.tsx +++ b/packages/core/admin/admin/src/pages/ProfilePage.tsx @@ -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} @@ -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 ? : } @@ -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} @@ -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 ? : } @@ -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} @@ -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 ? : } diff --git a/packages/core/admin/admin/src/translations/en.json b/packages/core/admin/admin/src/translations/en.json index 56be6503c20d..15e445c76d5d 100644 --- a/packages/core/admin/admin/src/translations/en.json +++ b/packages/core/admin/admin/src/translations/en.json @@ -442,14 +442,12 @@ "app.components.GuidedTour.mediaLibrary.success.content": "

Awesome you are a pro! What about customizing your experience?

", "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": "

Customize your profile by changing the interface mode #darkModeForTheWin.

", "app.components.GuidedTour.profile.create.cta.title": "Manage your profile", "app.components.GuidedTour.profile.success.content": "

🎉 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...

", "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",