Skip to content

Commit

Permalink
fix: eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
chuipagro committed Nov 5, 2024
1 parent 91f7e0a commit 9506fec
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions front/src/components/drive/fileList.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { FolderIcon, FileText } from "lucide-react";
import React, { useState } from 'react';

import "@/app/(drive)/drive.css";
import { FileListProps } from "@/utils/types";
import { Card, CardFooter, CardTitle, CardContent } from "@/components/ui/card";
import { FolderIcon, FileText } from "lucide-react";
import { FileListProps } from "@/utils/types";

type SortColumn = 'name' | 'size' | 'createdAt' | 'permission';
type SortOrder = 'asc' | 'desc';
Expand All @@ -29,14 +29,11 @@ const FileList: React.FC<FileListProps> = ({ files, folders }) => {
});

const sortedFolders = [...folders].sort((a, b) => {
const isAscending = sortOrder === 'asc' ? 1 : -1;
//const isAscending = sortOrder === 'asc' ? 1 : -1;
//if (a[sortColumn] < b[sortColumn]) return -1 * isAscending;
//if (a[sortColumn] > b[sortColumn]) return 1 * isAscending;
return 0;
});
console.log(sortedFiles);



return (
<div className="file-list-container">
Expand Down

0 comments on commit 9506fec

Please sign in to comment.