1
0
mirror of https://github.com/spacebarchat/client.git synced 2024-11-22 02:12:38 +01:00

join/create guild modals: clear stack on close

This commit is contained in:
Puyodead1 2023-12-11 01:48:28 -05:00
parent 6d6f97e3c2
commit 86acc58fb5
No known key found for this signature in database
GPG Key ID: A4FA4FEC0DD353FC
3 changed files with 3 additions and 0 deletions

View File

@ -119,6 +119,7 @@ function CreateServerModal({ ...props }: ModalProps<"create_server">) {
return (
<Modal
{...props}
onClose={() => modalController.closeAll()}
title="Customize your guild"
description="Give your new guild a personality with a name and an icon. You can always change it later."
actions={[

View File

@ -83,6 +83,7 @@ function JoinServerModal({ ...props }: ModalProps<"join_server">) {
return (
<Modal
{...props}
onClose={() => modalController.closeAll()}
title="Join a Guild"
description="Enter an invite below to join an existing guild."
actions={[

View File

@ -41,6 +41,7 @@ class ModalController<T extends Modal> {
});
this.close = this.close.bind(this);
this.closeAll = this.closeAll.bind(this);
}
/**