From 03b7ccaa5c152c8d7ed73374be8ad4d4d034845b Mon Sep 17 00:00:00 2001
From: sowgro <tpoke.ferrari@gmail.com>
Date: Thu, 7 Nov 2024 12:40:42 -0500
Subject: Implement sorting and refactor

---
 extension/src/FolderButton.tsx | 25 -------------------------
 1 file changed, 25 deletions(-)
 delete mode 100644 extension/src/FolderButton.tsx

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

diff --git a/extension/src/FolderButton.tsx b/extension/src/FolderButton.tsx
deleted file mode 100644
index e74cdbf..0000000
--- a/extension/src/FolderButton.tsx
+++ /dev/null
@@ -1,25 +0,0 @@
-import BookmarkTreeNode = browser.bookmarks.BookmarkTreeNode;
-import FolderBody from "./FolderBody.tsx";
-import folderIcon from "./assets/folder.svg"
-import folderIconOpen from "./assets/folder_open.svg"
-import {useState} from "react";
-
-function FolderButton(props: {data: BookmarkTreeNode}) {
-
-    const [folderOpen, setFolderOpen] = useState(false);
-
-    return(
-        <>
-            <a className={"bookmark draggable"} onClick={() => setFolderOpen(!folderOpen)}>
-                <img alt="Folder icon" src={folderOpen ? folderIconOpen : folderIcon}/>
-                <span>{props.data.title}</span>
-            </a>
-            { folderOpen
-                && props.data.children
-                && props.data.children.length > 0
-                && (<FolderBody data={props.data}/>)}
-        </>
-);
-}
-
-export default FolderButton
\ No newline at end of file
-- 
cgit v1.2.3

