Move creating bots to a popover

This commit is contained in:
Snazzah
2021-08-31 04:00:45 +00:00
committed by GitHub
parent d2740f2844
commit 28dbd49957
5 changed files with 101 additions and 24 deletions

View File

@@ -16,6 +16,7 @@ import { Action } from "../../components/ui/Modal";
import { Children } from "../../types/Preact";
import Modals from "./Modals";
import { Bot } from "revolt-api/types/Bots";
export type Screen =
| { id: "none" }
@@ -90,6 +91,7 @@ export type Screen =
| { id: "channel_info"; channel: Channel }
| { id: "pending_requests"; users: User[] }
| { id: "modify_account"; field: "username" | "email" | "password" }
| { id: "create_bot"; onCreate: (bot: Bot) => void }
| {
id: "server_identity";
server: Server;