Remove logging
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-01-24 15:14:17 -05:00
parent fe64a868d7
commit 0c5d7e3c1b
2 changed files with 0 additions and 7 deletions

View File

@@ -15,26 +15,21 @@ export function Bins() {
const { bin, item, setBin, setItem } = useContext(BinnerContext);
const handleKeydown = useCallback((event: KeyboardEvent) => {
console.log('Bins Keydown!');
switch (event.key) {
case 'ArrowDown':
event.preventDefault();
console.log('Loss!');
setBin(Bin.LOSS);
break;
case 'ArrowLeft':
event.preventDefault();
console.log('Process!');
setBin(Bin.PROCESS);
break;
case 'ArrowRight':
event.preventDefault();
console.log('Shoulder Tap!');
setBin(Bin.SHOULDER_TAP);
break;
case 'ArrowUp':
event.preventDefault();
console.log('Donate!');
setBin(Bin.DONATE);
break;
}

View File

@@ -17,13 +17,11 @@ export default function Page() {
switch (event.key) {
case ' ':
event.preventDefault();
console.log('Simulating barcode read');
const barcode = generateRandomBarcode();
setItem(barcodeToProduct(barcode));
break;
case 'Escape':
event.preventDefault();
console.log('Clearing bin selection');
setBin(null);
break;
}