feat(WEB-154): my profile view

This commit is contained in:
Simon Emanuelsson
2024-04-05 08:28:20 +02:00
parent 3b05b9f205
commit 82e4d40203
95 changed files with 1239 additions and 196 deletions
+11
View File
@@ -0,0 +1,11 @@
"use client"
import { useEffect } from 'react';
export function useHandleKeyPress(callback: (event: KeyboardEvent) => void) {
useEffect(() => {
window.addEventListener('keydown', callback);
return () => {
window.removeEventListener('keydown', callback);
};
}, [callback]);
}