mirror of
https://github.com/spacebarchat/client.git
synced 2024-11-22 10:22:30 +01:00
fix component having wrong name
This commit is contained in:
parent
ec564739a1
commit
8105432088
@ -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)
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user