From 474f81f08e11a3e2d2570f99daeff7fef46d8a7c Mon Sep 17 00:00:00 2001 From: Bailey Pumfleet Date: Sat, 19 Oct 2024 00:08:49 -0400 Subject: [PATCH] refactor: Minor settings style & copy alterations (#17178) --- .../settings/CustomEmailTextField.tsx | 2 +- .../settings/SecondaryEmailModal.tsx | 1 + .../settings/my-account/general-view.tsx | 8 ++- .../settings/my-account/profile-view.tsx | 63 ++++++++++--------- apps/web/public/static/locales/en/common.json | 16 ++--- 5 files changed, 48 insertions(+), 42 deletions(-) diff --git a/apps/web/components/settings/CustomEmailTextField.tsx b/apps/web/components/settings/CustomEmailTextField.tsx index 22417a4f69..509f35b409 100644 --- a/apps/web/components/settings/CustomEmailTextField.tsx +++ b/apps/web/components/settings/CustomEmailTextField.tsx @@ -45,7 +45,7 @@ const CustomEmailTextField = ({ return ( <>
+
{t("change_email_hint")}
{!watchedTzSchedules.length ? ( - ) : ( @@ -310,7 +314,7 @@ const GeneralView = ({ localeProp, user, travelSchedules, revalidatePage }: Gene )} /> -
+
{t("timeformat_profile_hint")}
{ Icon="triangle-alert"> <>
-

{t("delete_account_confirmation_message")}

+

{t("delete_account_confirmation_message")}

{isCALIdentityProvider && ( {showRemoveAvatarButton && ( @@ -651,35 +651,36 @@ const ProfileForm = ({
- {secondaryEmailFields.map((field, index) => ( - { - const fields = secondaryEmailFields.map((secondaryField, cIndex) => ({ - ...secondaryField, - emailPrimary: cIndex === index, - })); - updateAllSecondaryEmailFields(fields); - }} - handleVerifyEmail={() => handleResendVerifyEmail(field.email)} - handleItemDelete={() => deleteSecondaryEmail(index)} - /> - ))} -
{t("change_email_hint")}
- +
+ {secondaryEmailFields.map((field, index) => ( + { + const fields = secondaryEmailFields.map((secondaryField, cIndex) => ({ + ...secondaryField, + emailPrimary: cIndex === index, + })); + updateAllSecondaryEmailFields(fields); + }} + handleVerifyEmail={() => handleResendVerifyEmail(field.email)} + handleItemDelete={() => deleteSecondaryEmail(index)} + /> + ))} + +
diff --git a/apps/web/public/static/locales/en/common.json b/apps/web/public/static/locales/en/common.json index c28f8a3bd5..2e5d4c1877 100644 --- a/apps/web/public/static/locales/en/common.json +++ b/apps/web/public/static/locales/en/common.json @@ -462,7 +462,7 @@ "allow_dynamic_booking": "Allow attendees to book you through dynamic group bookings", "dynamic_booking": "Dynamic group links", "allow_seo_indexing": "Allow search engines to access your public content", - "seo_indexing": "Allow SEO Indexing", + "seo_indexing": "Allow search engine indexing", "allow_browser_notifications": "Allow Browser Notifications", "you_have_denied_notifications": "You have denied notifications. Reset permission in browser settings to enable.", "disable_browser_notifications": "Disable Browser Notifications", @@ -673,8 +673,8 @@ "hide_book_a_team_member": "Hide Book a Team Member Button", "hide_book_a_team_member_description": "Hide Book a Team Member Button from your public pages.", "danger_zone": "Danger zone", - "account_deletion_cannot_be_undone": "Be Careful. Account deletion cannot be undone.", - "team_deletion_cannot_be_undone": "Be Careful. Team deletion cannot be undone.", + "account_deletion_cannot_be_undone": "Be careful. Account deletion cannot be undone.", + "team_deletion_cannot_be_undone": "Be careful. Team deletion cannot be undone.", "back": "Back", "cancel": "Cancel", "cancel_all_remaining": "Cancel all remaining", @@ -1566,9 +1566,9 @@ "route_to_the_right_person": "Route to the right person based on the answers to your form", "form_description": "Create your form to route a booker", "copy_link_to_form": "Copy link to form", - "theme": "Booking Page Theme", + "theme": "Booking page theme", "theme_applies_note": "This only applies to your public booking pages", - "app_theme": "Dashboard Theme", + "app_theme": "Dashboard theme", "app_theme_applies_note": "This only applies to your logged in dashboard", "theme_system": "System default", "add_a_team": "Add a team", @@ -1599,7 +1599,7 @@ "no_calendar_installed": "No calendar installed", "no_calendar_installed_description": "You have not yet connected any of your calendars", "add_a_calendar": "Add a calendar", - "change_email_hint": "You may need to log out and back in to see any change take effect", + "change_email_hint": "You may need to log out and back in to see any change take effect.", "confirm_password_change_email": "Please confirm your password before changing your email address", "seats": "seats", "every_app_published": "Every app published on the {{appName}} App Store is open source and thoroughly tested via peer reviews. Nevertheless, {{companyName}} does not endorse or certify these apps unless they are published by {{appName}}. If you encounter inappropriate content or behaviour please report it.", @@ -1848,7 +1848,7 @@ "setup": "Setup", "setup_description": "Setup Cal.com instance", "configure": "Configure", - "sso_configuration": "Single Sign-On", + "sso_configuration": "Single sign-on", "sso_configuration_description": "Configure SAML/OIDC SSO and allow team members to login using an Identity Provider", "sso_configuration_description_orgs": "Configure SAML/OIDC SSO and allow organization members to login using an Identity Provider", "sso_oidc_heading": "SSO with OIDC", @@ -2222,7 +2222,7 @@ "most_popular_events": "Most Popular Events", "summary_of_events_for_your_team_for_the_last_30_days": "Here's your summary of popular events for your team {{teamName}} for the last 30 days", "me": "Me", - "monthly_digest_email": "Monthly Digest Email", + "monthly_digest_email": "Monthly digest email", "monthly_digest_email_for_teams": "Monthly digest email for teams", "verify_team_tooltip": "Verify your team to enable sending messages to attendees", "member_removed": "Member removed",