From da39fa8b18055cdd8ca2094da6fab9946de33de4 Mon Sep 17 00:00:00 2001
From: sowgro <tpoke.ferrari@gmail.com>
Date: Tue, 5 Nov 2024 20:48:13 -0500
Subject: New Folder design

---
 extension/src/Body.tsx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

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

diff --git a/extension/src/Body.tsx b/extension/src/Body.tsx
index 0ac2e4c..786ee27 100644
--- a/extension/src/Body.tsx
+++ b/extension/src/Body.tsx
@@ -1,8 +1,8 @@
 import React, {useEffect, useState} from "react";
 import SettingsEditor from "./SettingsEditor.tsx";
-import Folder from "./Folder.tsx";
 import imageUrl from "./assets/settings.svg"
 import BookmarkTreeNode = browser.bookmarks.BookmarkTreeNode;
+import FolderBody from "./FolderBody.tsx";
 
 // @ts-ignore
 if (typeof browser === "undefined") {
@@ -21,7 +21,7 @@ export const BookmarkTree = React.createContext({
 
 function Body() {
     const [settingsOpen, setSettingsOpen] = useState(false);
-    const [rootFolder, setRootFolder] = useState('1');
+    const [rootFolder, setRootFolder] = useState("root________");
     const [bookmarkTree, setBookmarkTree] = useState<BookmarkTreeNode[]>([])
     const [ogBookmarkTree, setOgBookmarkTree] = useState<BookmarkTreeNode[] | null>([])
     const [backgroundURL, setBackgroundURL] = useState("")
@@ -44,7 +44,7 @@ function Body() {
                 <img alt="open settings" src={imageUrl}/>
             </button>
             {settingsOpen && (<SettingsEditor tree={ogBookmarkTree!} closer={setSettingsOpen} setBackgroundURL={setBackgroundURL}/>)}
-            {bookmarkTree[0] && (<Folder data={bookmarkTree[0]}/>)}
+            {bookmarkTree[0] && (<FolderBody data={bookmarkTree[0]}/>)}
         </RootFolder.Provider>
         </BookmarkTree.Provider>
     )
-- 
cgit v1.2.3

