feat(modal): port ModifyAccount and PendingRequest

This commit is contained in:
Paul Makles
2022-06-18 15:02:59 +01:00
parent 211ff2058a
commit 6755217ad2
9 changed files with 56 additions and 57 deletions

View File

@@ -56,7 +56,7 @@ export default observer(
keyof Props | "children" | "as"
>,
) => {
const client = useClient();
const client = useApplicationState().client!;
const {
target,

View File

@@ -12,6 +12,7 @@ import {
} from "@revoltchat/ui";
import { useIntermediate } from "../../../context/intermediate/Intermediate";
import { modalController } from "../../../context/modals";
import {
ClientStatus,
StatusContext,
@@ -62,8 +63,9 @@ export default function EditAccount() {
account
action={<Pencil size={20} />}
onClick={() =>
openScreen({
id: "modify_account",
modalController.push({
type: "modify_account",
client,
field,
})
}>