Message Request UI Improvements (#9938)

This commit is contained in:
yash-signal
2025-03-18 12:35:09 -05:00
committed by GitHub
parent 63fd260b03
commit 1ecbfa0334
52 changed files with 1099 additions and 352 deletions

View File

@@ -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();
}