fix(ui): fix typo (#3799)

fix: shortcut typo
This commit is contained in:
Aaron
2025-01-03 22:14:27 +08:00
committed by GitHub
parent b6165e3578
commit 7af5815fa9
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ import { getOS } from '@/utils/genericHelper'
const isMac = getOS() === 'macos' const isMac = getOS() === 'macos'
const useSearchShorcut = (inputRef) => { const useSearchShortcut = (inputRef) => {
useEffect(() => { useEffect(() => {
const component = inputRef.current const component = inputRef.current
@@ -32,4 +32,4 @@ const useSearchShorcut = (inputRef) => {
}, [inputRef]) // Add inputRef to the dependency array to ensure the effect is re-applied if inputRef changes }, [inputRef]) // Add inputRef to the dependency array to ensure the effect is re-applied if inputRef changes
} }
export default useSearchShorcut export default useSearchShortcut
@@ -9,7 +9,7 @@ import { StyledFab } from '@/ui-component/button/StyledFab'
// icons // icons
import { IconSearch, IconArrowLeft, IconEdit } from '@tabler/icons-react' import { IconSearch, IconArrowLeft, IconEdit } from '@tabler/icons-react'
import useSearchShorcut from '@/hooks/useSearchShortcut' import useSearchShortcut from '@/hooks/useSearchShortcut'
import { getOS } from '@/utils/genericHelper' import { getOS } from '@/utils/genericHelper'
const os = getOS() const os = getOS()
@@ -32,7 +32,7 @@ const ViewHeader = ({
}) => { }) => {
const theme = useTheme() const theme = useTheme()
const searchInputRef = useRef() const searchInputRef = useRef()
useSearchShorcut(searchInputRef) useSearchShortcut(searchInputRef)
return ( return (
<Box sx={{ flexGrow: 1, py: 1.25, width: '100%' }}> <Box sx={{ flexGrow: 1, py: 1.25, width: '100%' }}>