Skip to content

Commit

Permalink
fix(ui): fix typo (#3799)
Browse files Browse the repository at this point in the history
fix: shortcut typo
  • Loading branch information
Aarebecca authored Jan 3, 2025
1 parent b6165e3 commit 7af5815
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/ui/src/hooks/useSearchShortcut.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { getOS } from '@/utils/genericHelper'

const isMac = getOS() === 'macos'

const useSearchShorcut = (inputRef) => {
const useSearchShortcut = (inputRef) => {
useEffect(() => {
const component = inputRef.current

Expand Down Expand Up @@ -32,4 +32,4 @@ const useSearchShorcut = (inputRef) => {
}, [inputRef]) // Add inputRef to the dependency array to ensure the effect is re-applied if inputRef changes
}

export default useSearchShorcut
export default useSearchShortcut
4 changes: 2 additions & 2 deletions packages/ui/src/layout/MainLayout/ViewHeader.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { StyledFab } from '@/ui-component/button/StyledFab'
// icons
import { IconSearch, IconArrowLeft, IconEdit } from '@tabler/icons-react'

import useSearchShorcut from '@/hooks/useSearchShortcut'
import useSearchShortcut from '@/hooks/useSearchShortcut'
import { getOS } from '@/utils/genericHelper'

const os = getOS()
Expand All @@ -32,7 +32,7 @@ const ViewHeader = ({
}) => {
const theme = useTheme()
const searchInputRef = useRef()
useSearchShorcut(searchInputRef)
useSearchShortcut(searchInputRef)

return (
<Box sx={{ flexGrow: 1, py: 1.25, width: '100%' }}>
Expand Down

0 comments on commit 7af5815

Please sign in to comment.