From 8068d0f274e6f36da6265b14d3d8fa974ff46b83 Mon Sep 17 00:00:00 2001 From: dudleycu Date: Wed, 18 Aug 2021 03:29:40 +0900 Subject: [PATCH] attempting to fix the scuffed admin --- backup_class_selctor_stuff_lol | 22 +++++++++++++++++++++- src/App.js | 4 ++-- 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/backup_class_selctor_stuff_lol b/backup_class_selctor_stuff_lol index 17c3c77..5053a57 100644 --- a/backup_class_selctor_stuff_lol +++ b/backup_class_selctor_stuff_lol @@ -28,4 +28,24 @@ function ClassSelectorWindow(p) { {Object.keys(p.GetData("class")).map((cl)=>
  • {cl}
  • )} - \ No newline at end of file + + + + + + + +function ClassSelector(p){ + const CLASSES = p.GetData("class") + const wrapperRef = useRef(null); + useOutsideAlerter(wrapperRef,p.setEdit); + return <>
    + Class Selector
    +
    + {Object.keys(CLASSES).map((cl,i)=>{ + return + })} +
    +
    + +} \ No newline at end of file diff --git a/src/App.js b/src/App.js index 1744e5f..7b91fe4 100644 --- a/src/App.js +++ b/src/App.js @@ -379,7 +379,7 @@ function AdminPanel(p) { return
    {!verified? -
    +
    {setPassword(f.currentTarget.value)}} onKeyDown={(e)=>{ if (e.key==="Enter") { @@ -398,7 +398,7 @@ function AdminPanel(p) {
    :<> -
    Testing Mode {p.setTESTMODE(f.target.checked)}}/> {p.TESTMODE?ON:OFF}
    +
    Testing Mode {p.setTESTMODE(f.target.checked)}}/> {p.TESTMODE?ON:OFF}
    {navigationData.map((nav)=>(nav.hr)?
    :<>{nav.page}
    )} Database Manager