update chats

This commit is contained in:
Ren Amamiya
2023-05-27 16:44:13 +07:00
parent 79e948ac05
commit ff6d494b49
11 changed files with 109 additions and 69 deletions

View File

@@ -1,7 +1,6 @@
import PlusIcon from "@icons/plus";
import { channelContentAtom } from "@stores/channel";
import { chatContentAtom } from "@stores/chat";
import { createBlobFromFile } from "@utils/createBlobFromFile";
@@ -14,9 +13,6 @@ export function ImagePicker({ type }: { type: string }) {
let atom;
switch (type) {
case "chat":
atom = chatContentAtom;
break;
case "channel":
atom = channelContentAtom;
break;