Fixes for a few oddities and the Traefik issues
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-01-24 17:18:42 -05:00
parent 4a0fe47000
commit ef2846f626
4 changed files with 66 additions and 38 deletions

View File

@@ -22,17 +22,21 @@ export default function Page() {
break;
case 'Escape':
event.preventDefault();
setBin(null);
if (bin !== null) {
setBin(null);
} else {
setItem(null);
}
break;
}
}, [bin, item, setBin, setItem]);
}, [bin, setBin, setItem]);
useEffect(() => {
window.addEventListener('keydown', handleKeydown);
return () => {
window.removeEventListener('keydown', handleKeydown);
};
}, []);
}, [handleKeydown]);
return (
<main className={styles.page}>