mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-04-23 07:59:59 -04:00
Fixed type error
This commit is contained in:
@@ -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