mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-10-09 02:51:38 -04:00
Fixed type error
This commit is contained in:
1 parent
31547db0ac
commit
61885dc2e9
1 file changed
+1
-1
@@ -69,7 +69,7 @@ export const TopBar: React.FC<TopBarProps> = (props) => {
|
||||
let navigate = useNavigate();
|
||||
|
||||
//create function to focus on search box when cmd+k is pressed
|
||||
const searchRef: any = React.useRef(null);
|
||||
const searchRef = React.useRef<HTMLInputElement>(null);
|
||||
React.useEffect(() => {
|
||||
document.addEventListener('keydown', (e) => {
|
||||
if (e.metaKey && e.key === 'k' && searchRef.current) {
|
||||
|
||||
Reference in new issue
Block a user