From 89f822c5a50cde9976786619a75c2ec0dd501450 Mon Sep 17 00:00:00 2001
From: sowgro <tpoke.ferrari@gmail.com>
Date: Sun, 20 Oct 2024 21:40:00 -0400
Subject: Add expanders

---
 extension/src/Folder.tsx | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(limited to 'extension/src/Folder.tsx')

diff --git a/extension/src/Folder.tsx b/extension/src/Folder.tsx
index 93cc286..b7da330 100644
--- a/extension/src/Folder.tsx
+++ b/extension/src/Folder.tsx
@@ -3,10 +3,10 @@ import Bookmark from "./Bookmark.tsx";
 
 function Folder (props: {data: BookmarkTreeNode}) {
     return (
-        <div className="folder">
-            <span>{props.data.title}</span>
+        <details open className="folder">
+            <summary>{props.data.title}</summary>
             <div>
-                {
+            {
                     props.data.children &&
                     props.data.children.map(child =>
                         child.children
@@ -15,7 +15,7 @@ function Folder (props: {data: BookmarkTreeNode}) {
                     )
                 }
             </div>
-        </div>
+        </details>
     )
 }
 
-- 
cgit v1.2.3

