From 7fb0c73c6d760f57a7deffb511dc1b53169114bf Mon Sep 17 00:00:00 2001 From: przeq piciel Date: Sun, 1 Sep 2024 09:39:52 +0000 Subject: [PATCH] changing directoary after clock on it --- app/components/FilesEditor/index.tsx | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/app/components/FilesEditor/index.tsx b/app/components/FilesEditor/index.tsx index e76ba4e..35758d9 100644 --- a/app/components/FilesEditor/index.tsx +++ b/app/components/FilesEditor/index.tsx @@ -164,7 +164,19 @@ const Index = () => {
{file.attributes.is_file ? : }
-
{file.attributes.name}
+
+ {file.attributes.is_file ? ( + {file.attributes.name} + ) : ( + + changeDirectory(`${path}/${file.attributes.name}`) + } + > + {file.attributes.name} + + )} +
{file.attributes.is_file ? `${file.attributes.size} bytes` : ""}