diff --git a/src/App.js b/src/App.js index 737edac..a46465a 100644 --- a/src/App.js +++ b/src/App.js @@ -1,6 +1,5 @@ -import logo from './logo.svg'; import './App.css'; -import React, {useState,useEffect,useRef,useReducer} from 'react'; +import React, {useState,useEffect} from 'react'; function Col(p) { return
@@ -18,15 +17,12 @@ function Box(p) { } function EditBox(p) { - const [loaded,setLoaded] = useState(false) useEffect(()=>{ setTimeout(()=>{document.getElementById("editBox").focus()},100) - setLoaded(true) }) -return { - if (e.key==="Enter") {p.setEdit(false)} -}} maxLength={p.maxlength?p.maxlength:20} onBlur={()=>{p.setEdit(false)}} value={p.value} onChange={(f)=>{f.currentTarget.value.length>0?p.setName(f.currentTarget.value):p.setName(p.originalName)}}> - + return { + if (e.key==="Enter") {p.setEdit(false)} + }} maxLength={p.maxlength?p.maxlength:20} onBlur={()=>{p.setEdit(false)}} value={p.value} onChange={(f)=>{f.currentTarget.value.length>0?p.setName(f.currentTarget.value):p.setName(p.originalName)}}> } @@ -119,14 +115,14 @@ const ABILITY_DEFAULT_ICON = "icons/UINGSItemSpecialAbility.png" function Class(p) { const class_obj = CLASSES[p.name] - return <>{class_obj.name} + return <>{class_obj.name} } function ClassSelector(p){ return
Class Selector
{Object.keys(CLASSES).map((cl,i)=>{ - return + return })}
} @@ -175,7 +171,7 @@ function EffectListing(p) { } function PageControlButton(p) { - return
  • {p.setCurrentPage(p.page)}} className={(p.currentPage==p.page)?"selected":""}>{p.pageName?p.pageName:p.page}
  • + return
  • {p.setCurrentPage(p.page)}} className={(p.currentPage===p.page)?"selected":""}>{p.pageName?p.pageName:p.page}
  • } function PageControl(p) { @@ -195,7 +191,7 @@ function EffectsBox(p) {

    Effect Name

    { - currentPage==1? + currentPage===1?