Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Molaryy committed Sep 5, 2023
1 parent 88ea577 commit 97686df
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
6 changes: 2 additions & 4 deletions src/components/cards/DriveCards.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ type DriveCardsProps = {
contacts?: IPCContact[];
};

const DriveCards = ({files, folders, programs, contacts}: DriveCardsProps): JSX.Element => {
return (
const DriveCards = ({files, folders, programs, contacts}: DriveCardsProps): JSX.Element => (
<VStack w="100%">
<PathCard/>
{folders?.map((folder) => (
Expand All @@ -32,7 +31,6 @@ const DriveCards = ({files, folders, programs, contacts}: DriveCardsProps): JSX.
<ContactCard contact={contact} key={contact.address}/>
))}
</VStack>
);
}
)

export default DriveCards;
7 changes: 4 additions & 3 deletions src/components/folder/UploadFolder.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,11 @@ const UploadFolder = (): JSX.Element => {
const filesContent: ArrayBuffer[] = [];

const getAllFiles = async (fileInfo: FileInfo[], filesEvent: FileList) => {

for (const filesEvent_ of filesEvent) {

// eslint-disable-next-line no-await-in-loop, no-restricted-syntax
for (const e of filesEvent) {
// eslint-disable-next-line no-await-in-loop
const fileContent = await getFileContent(filesEvent_);
const fileContent = await getFileContent(e);
filesContent.push(fileContent);
}

Expand Down

0 comments on commit 97686df

Please sign in to comment.