diff --git a/src/components/messaging/MessageInput.tsx b/src/components/messaging/MessageInput.tsx index b5f23cc..01e1528 100644 --- a/src/components/messaging/MessageInput.tsx +++ b/src/components/messaging/MessageInput.tsx @@ -11,7 +11,7 @@ import Snowflake from "../../utils/Snowflake"; import { debounce } from "../../utils/debounce"; import { isTouchscreenDevice } from "../../utils/isTouchscreenDevice"; import MessageTextArea from "./MessageTextArea"; -import FileUpload from "./attachments/AttachmentUpload"; +import AttachmentUpload from "./attachments/AttachmentUpload"; import AttachmentUploadList from "./attachments/AttachmentUploadPreview"; const Container = styled.div` @@ -188,7 +188,7 @@ function MessageInput({ channel }: Props) { {channel.hasPermission("ATTACH_FILES") && channel.hasPermission("SEND_MESSAGES") && ( - { if (files.length === 0) return; if (uploadState.type === UploadStateType.NONE) diff --git a/src/components/messaging/attachments/AttachmentUpload.tsx b/src/components/messaging/attachments/AttachmentUpload.tsx index 57ce5bb..8d4f115 100644 --- a/src/components/messaging/attachments/AttachmentUpload.tsx +++ b/src/components/messaging/attachments/AttachmentUpload.tsx @@ -59,8 +59,8 @@ interface Props { append: (files: File[]) => void; } -function FileUpload({ append }: Props) { - const logger = useLogger("FileUpload"); +function AttachmentUpload({ append }: Props) { + const logger = useLogger("AttachmentUpload"); const fileTooLarge = () => { // TODO: show error modal @@ -137,4 +137,4 @@ function FileUpload({ append }: Props) { ); } -export default observer(FileUpload); +export default observer(AttachmentUpload);