-
{title}
+
{title}
{message &&
{message}
}
- {extraContent}
+ {extraContent ?? children}
diff --git a/app/javascript/mastodon/features/ui/components/confirmation_modals/index.ts b/app/javascript/mastodon/features/ui/components/confirmation_modals/index.ts
index 389ad7ea83..c27597fb52 100644
--- a/app/javascript/mastodon/features/ui/components/confirmation_modals/index.ts
+++ b/app/javascript/mastodon/features/ui/components/confirmation_modals/index.ts
@@ -1,3 +1,4 @@
+export type { BaseConfirmationModalProps } from './confirmation_modal';
export { ConfirmationModal } from './confirmation_modal';
export { ConfirmDeleteStatusModal } from './delete_status';
export { ConfirmDeleteListModal } from './delete_list';
diff --git a/app/javascript/mastodon/features/ui/components/confirmation_modals/quiet_post_quote_info.tsx b/app/javascript/mastodon/features/ui/components/confirmation_modals/quiet_post_quote_info.tsx
index 534d72e6ce..eecffb1d25 100644
--- a/app/javascript/mastodon/features/ui/components/confirmation_modals/quiet_post_quote_info.tsx
+++ b/app/javascript/mastodon/features/ui/components/confirmation_modals/quiet_post_quote_info.tsx
@@ -33,7 +33,7 @@ const messages = defineMessages({
/**
* [1] Since we only want this modal to have two buttons – "Don't ask again" and
* "Got it" – , we have to use the `onClose` handler to handle the "Don't ask again"
- * functionality. Because of this, we need to set `closeWhenConfirm` to false and
+ * functionality. Because of this, we need to set `noCloseOnConfirm` to true and
* close the modal manually.
* This prevents the modal from being dismissed permanently when just confirming.
*/
@@ -65,13 +65,13 @@ export const QuietPostQuoteInfoModal: React.FC<{ status: Status }> = ({
return (
);
};
diff --git a/app/javascript/mastodon/features/ui/components/modal_root.jsx b/app/javascript/mastodon/features/ui/components/modal_root.jsx
index 4aae94574b..2e3efd4372 100644
--- a/app/javascript/mastodon/features/ui/components/modal_root.jsx
+++ b/app/javascript/mastodon/features/ui/components/modal_root.jsx
@@ -88,6 +88,8 @@ export const MODAL_COMPONENTS = {
'ANNUAL_REPORT': AnnualReportModal,
'COMPOSE_PRIVACY': () => Promise.resolve({ default: VisibilityModal }),
'ACCOUNT_NOTE': () => import('@/mastodon/features/account_timeline/modals/note_modal').then(module => ({ default: module.AccountNoteModal })),
+ 'ACCOUNT_EDIT_NAME': () => import('@/mastodon/features/account_edit/components/name_modal').then(module => ({ default: module.NameModal })),
+ 'ACCOUNT_EDIT_BIO': () => import('@/mastodon/features/account_edit/components/bio_modal').then(module => ({ default: module.BioModal })),
};
export default class ModalRoot extends PureComponent {
diff --git a/app/javascript/mastodon/locales/en.json b/app/javascript/mastodon/locales/en.json
index 9352ae5166..23b98dcc38 100644
--- a/app/javascript/mastodon/locales/en.json
+++ b/app/javascript/mastodon/locales/en.json
@@ -141,8 +141,25 @@
"account.unmute": "Unmute @{name}",
"account.unmute_notifications_short": "Unmute notifications",
"account.unmute_short": "Unmute",
+ "account_edit.bio.placeholder": "Add a short introduction to help others identify you.",
+ "account_edit.bio.title": "Bio",
+ "account_edit.bio_modal.add_title": "Add bio",
+ "account_edit.bio_modal.edit_title": "Edit bio",
+ "account_edit.char_counter": "{currentLength}/{maxLength} characters",
"account_edit.column_button": "Done",
"account_edit.column_title": "Edit Profile",
+ "account_edit.custom_fields.placeholder": "Add your pronouns, external links, or anything else you’d like to share.",
+ "account_edit.custom_fields.title": "Custom fields",
+ "account_edit.display_name.placeholder": "Your display name is how your name appears on your profile and in timelines.",
+ "account_edit.display_name.title": "Display name",
+ "account_edit.featured_hashtags.placeholder": "Help others identify, and have quick access to, your favorite topics.",
+ "account_edit.featured_hashtags.title": "Featured hashtags",
+ "account_edit.name_modal.add_title": "Add display name",
+ "account_edit.name_modal.edit_title": "Edit display name",
+ "account_edit.profile_tab.subtitle": "Customize the tabs on your profile and what they display.",
+ "account_edit.profile_tab.title": "Profile tab settings",
+ "account_edit.save": "Save",
+ "account_edit.section_edit_button": "Edit",
"account_note.placeholder": "Click to add note",
"admin.dashboard.daily_retention": "User retention rate by day after sign-up",
"admin.dashboard.monthly_retention": "User retention rate by month after sign-up",