Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Commit

Permalink
repaired file input
Browse files Browse the repository at this point in the history
  • Loading branch information
Taliayaya committed May 1, 2022
1 parent a9ed840 commit 6ccd337
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/MessageInput/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { styled } from '@mui/material'
import {
StyleFileUploadContainer,
StyleMobileSendingContainer,
} from './StyleMessageInput'
} from './/StyleMessageInput'
// For the files tray
import { Stack, Badge, Button } from '@mui/material'
import CloseIcon from '@mui/icons-material/Close'
Expand Down Expand Up @@ -99,6 +99,7 @@ const FilesTray = ({ selectedFiles, setSelectedFiles }) => {
* selectedFiles: the state of the files, a list containing the files
* setSelectedFiles: the state selector of the list of files
* */
console.log(selectedFiles)
return (
<Stack direction="row" spacing={2}>
{selectedFiles.map((file) => (
Expand All @@ -121,7 +122,7 @@ const FilesTray = ({ selectedFiles, setSelectedFiles }) => {
</Tooltip>
}
>
<Button>{file[1]}</Button>
<Button variant="contained">{file[1]}</Button>
</Badge>
))}
</Stack>
Expand Down

0 comments on commit 6ccd337

Please sign in to comment.