mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Message Request UI Improvements (#9938)
This commit is contained in:
@@ -133,6 +133,9 @@ export type PropsType = {
|
||||
// UsernameOnboarding
|
||||
usernameOnboardingState: UsernameOnboardingState;
|
||||
renderUsernameOnboarding: () => JSX.Element;
|
||||
isProfileNameWarningModalVisible: boolean;
|
||||
profileNameWarningModalConversationType?: string;
|
||||
renderProfileNameWarningModal: () => JSX.Element;
|
||||
};
|
||||
|
||||
export function GlobalModalContainer({
|
||||
@@ -220,6 +223,9 @@ export function GlobalModalContainer({
|
||||
// UsernameOnboarding
|
||||
usernameOnboardingState,
|
||||
renderUsernameOnboarding,
|
||||
// ProfileNameWarningModal
|
||||
isProfileNameWarningModalVisible,
|
||||
renderProfileNameWarningModal,
|
||||
}: PropsType): JSX.Element | null {
|
||||
// We want the following dialogs to show in this order:
|
||||
// 1. Errors
|
||||
@@ -296,6 +302,10 @@ export function GlobalModalContainer({
|
||||
return renderProfileEditor();
|
||||
}
|
||||
|
||||
if (isProfileNameWarningModalVisible) {
|
||||
return renderProfileNameWarningModal();
|
||||
}
|
||||
|
||||
if (isShortcutGuideModalVisible) {
|
||||
return renderShortcutGuideModal();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user