From 20562327591d59bb223ea4dca8467fde67b585a3 Mon Sep 17 00:00:00 2001 From: Paul Makles Date: Mon, 30 May 2022 16:46:07 +0100 Subject: [PATCH] fix: build errors --- src/components/navigation/left/ServerListSidebar.tsx | 3 --- src/context/intermediate/Intermediate.tsx | 2 +- src/context/intermediate/modals/Prompt.tsx | 2 +- src/context/intermediate/popovers/ModifyAccount.tsx | 1 - 4 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/components/navigation/left/ServerListSidebar.tsx b/src/components/navigation/left/ServerListSidebar.tsx index 4d7c5381..23d2b869 100644 --- a/src/components/navigation/left/ServerListSidebar.tsx +++ b/src/components/navigation/left/ServerListSidebar.tsx @@ -30,14 +30,11 @@ export default observer(() => { return ( diff --git a/src/context/intermediate/Intermediate.tsx b/src/context/intermediate/Intermediate.tsx index 3cf59894..94d86408 100644 --- a/src/context/intermediate/Intermediate.tsx +++ b/src/context/intermediate/Intermediate.tsx @@ -5,7 +5,7 @@ import { API, Channel, Message, Server, User } from "revolt.js"; import { createContext } from "preact"; import { useContext, useEffect, useMemo, useState } from "preact/hooks"; -import type { Action } from "@revoltchat/ui/esm/components/design/atoms/layout/Modal"; +import type { Action } from "@revoltchat/ui/esm/components/design/atoms/display/Modal"; import { internalSubscribe } from "../../lib/eventEmitter"; import { determineLink } from "../../lib/links"; diff --git a/src/context/intermediate/modals/Prompt.tsx b/src/context/intermediate/modals/Prompt.tsx index 9addc269..a01a9f8a 100644 --- a/src/context/intermediate/modals/Prompt.tsx +++ b/src/context/intermediate/modals/Prompt.tsx @@ -8,7 +8,7 @@ import { Text } from "preact-i18n"; import { useContext, useEffect, useState } from "preact/hooks"; import { Category, Modal, InputBox, Radio } from "@revoltchat/ui"; -import type { Action } from "@revoltchat/ui/esm/components/design/atoms/layout/Modal"; +import type { Action } from "@revoltchat/ui/esm/components/design/atoms/display/Modal"; import { TextReact } from "../../../lib/i18n"; diff --git a/src/context/intermediate/popovers/ModifyAccount.tsx b/src/context/intermediate/popovers/ModifyAccount.tsx index db47824f..e1da7573 100644 --- a/src/context/intermediate/popovers/ModifyAccount.tsx +++ b/src/context/intermediate/popovers/ModifyAccount.tsx @@ -73,7 +73,6 @@ export function ModifyAccountModal({ onClose, field }: Props) { disabled={processing} actions={[ { - disabled: processing, confirmation: true, onClick: handleSubmit(onSubmit), children: