mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-07-18 20:09:10 +00:00
Fixed type error
This commit is contained in:
parent
31547db0ac
commit
61885dc2e9
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue