From f2357a84469751c8f90713627e81c0a05ee72ab4 Mon Sep 17 00:00:00 2001
From: sowgro <tpoke.ferrari@gmail.com>
Date: Sun, 3 Nov 2024 21:00:43 -0500
Subject: Root folder dropdown applies to bookmarks (somewhat broken)

---
 extension/src/SettingsEditor.tsx | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

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

diff --git a/extension/src/SettingsEditor.tsx b/extension/src/SettingsEditor.tsx
index 7568bad..f803fc3 100644
--- a/extension/src/SettingsEditor.tsx
+++ b/extension/src/SettingsEditor.tsx
@@ -1,12 +1,13 @@
 import RadioButtonGroup from "./RadioButtonGroup.tsx";
-import React, {useState} from "react";
+import React, {useContext, useState} from "react";
 import imageUrl from "./assets/close.svg"
 import BookmarkTreeNode = browser.bookmarks.BookmarkTreeNode;
+import {RootFolder} from "./Body.tsx";
 
 function SettingsEditor(props: {tree: BookmarkTreeNode[], closer: (arg0: boolean) => void}) {
     const [backgroundType, setBackgroundType] = useState("fromTheme");
     const [sort, setSort] = useState("fromBookmarks");
-    const [rootFolder, setRootFolder] = useState('0');
+    const {rootFolder, setRootFolder} = useContext(RootFolder)
 
     return (
         <div id="settings-menu">
-- 
cgit v1.2.3

