1
0
mirror of https://github.com/spacebarchat/client.git synced 2024-11-22 02:12:38 +01:00

fix component having wrong name

This commit is contained in:
Puyodead1 2023-09-10 23:12:49 -04:00
parent ec564739a1
commit 8105432088
No known key found for this signature in database
GPG Key ID: A4FA4FEC0DD353FC
2 changed files with 5 additions and 5 deletions

View File

@ -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) {
<InnerInnerWrapper>
<UploadWrapper>
{channel.hasPermission("ATTACH_FILES") && channel.hasPermission("SEND_MESSAGES") && (
<FileUpload
<AttachmentUpload
append={(files) => {
if (files.length === 0) return;
if (uploadState.type === UploadStateType.NONE)

View File

@ -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);