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:
parent
6d6f97e3c2
commit
86acc58fb5
@ -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={[
|
||||
|
@ -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={[
|
||||
|
@ -41,6 +41,7 @@ class ModalController<T extends Modal> {
|
||||
});
|
||||
|
||||
this.close = this.close.bind(this);
|
||||
this.closeAll = this.closeAll.bind(this);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user