From 2eccd5eb475b3b9f6080ce8d70189b5da2b531fb Mon Sep 17 00:00:00 2001 From: Manuel Palenzuela Merino Date: Wed, 10 Jul 2024 12:04:51 +0200 Subject: Pages: Recent: Style --- TODO | 2 +- src/pages/Recent.tsx | 30 ++++++++++++++++++------------ 2 files changed, 19 insertions(+), 13 deletions(-) diff --git a/TODO b/TODO index 26f68ca..fc224b7 100644 --- a/TODO +++ b/TODO @@ -1,2 +1,2 @@ -Deploy somewhere +we should probably use UUIDs for files instead of IDs we can save the time it takes to execute syscalls diff --git a/src/pages/Recent.tsx b/src/pages/Recent.tsx index 19c681f..76d9e2a 100644 --- a/src/pages/Recent.tsx +++ b/src/pages/Recent.tsx @@ -23,7 +23,6 @@ export default function Recent(props: any) { const { data, error } = await props.supabase .from('file') .select().range(paginationOffset, paginationOffset + numOfFilesToShow - 1) - //.limit(10).offset(paginationOffset) if (error) { console.error(error) return @@ -44,17 +43,24 @@ export default function Recent(props: any) { <>
-
- -
- {files.map((file: any) => ( -
-

file: {file.absolute_path}

-
- )) - } +
+
+
+ {files.map((file: any) => ( +
console.log("clocked file")}> +

file: {file.absolute_path}

+
+ )) + } +
+
+
+ +
-- cgit 1.4.1