organizing stuff better with taking out a layer of abstraction as we don't have many pages and just do everything in the provider

This commit is contained in:
talksik
2022-05-18 06:57:55 -05:00
parent bd7dbb525c
commit ed7d71f5d0
8 changed files with 35 additions and 45 deletions
@@ -40,7 +40,11 @@ export default React.memo(function LineRow({
}, [handleSelectLine, line.lineDetails, index]);
const hotkeyActivateLine = useCallback(() => {
if (isUserToggleTuned) handleActivateLine();
// TODO: disable for higher numbers? ehh maybe hidden easter egg to select more?
// if (isUserToggleTuned) handleActivateLine();
handleActivateLine();
}, [isUserToggleTuned, handleActivateLine]);
useKeyPressEvent((index + 1).toString(), hotkeyActivateLine);