Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ui): fix typo #3799

Merged
merged 1 commit into from
Jan 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading