CODE-SCHNIPSEL
@@ -1617,7 +1667,7 @@ function GlobalSearch({ setActive, setDevToolsNav, mobile }) {
3D-ARCHIV
{results.calculations.map((item,i)=>{
- const off=results.static.length+(results.links||[]).length+(results.snippets||[]).length;
+ const off=results.static.length+(results.links||[]).length+(results.folders||[]).length+(results.snippets||[]).length;
return
;
})}
@@ -1626,7 +1676,7 @@ function GlobalSearch({ setActive, setDevToolsNav, mobile }) {
BESTELLUNGEN
{results.orders.map((item,i)=>{
- const off=results.static.length+(results.links||[]).length+(results.snippets||[]).length+(results.calculations||[]).length;
+ const off=results.static.length+(results.links||[]).length+(results.folders||[]).length+(results.snippets||[]).length+(results.calculations||[]).length;
return
;
})}
@@ -2380,8 +2430,9 @@ const Field = ({ label, type='text', value, onChange, placeholder='', autoCapita
);
-function AdminPanel({ toast, mobile, user }) {
+function AdminPanel({ toast, mobile, user, nav }) {
const [section, setSection] = useState('profil');
+ useEffect(() => { if (nav?.section) setSection(nav.section); }, [nav?.ts]);
const [pw, setPw] = useState({ current:'', newPw:'', confirm:'' });
const [avatar, setAvatar] = useState(localStorage.getItem('dd_avatar') || null);
const [un, setUn] = useState({ newUsername:'', unPw:'' });
@@ -2682,7 +2733,7 @@ export default function App() {
)}