Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
sorja committed Oct 8, 2024
1 parent 9fc2912 commit a81763e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/client/components/ButtonTableExport/ButtonTableExport.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { CSVLink } from 'react-csv'
import { useIsDataLocked } from 'client/store/ui/dataLock'
import { useIsPrintRoute } from 'client/hooks/useIsRoute'
import { useButtonClassName } from 'client/components/Buttons/Button'
import { useFileName } from 'client/components/ButtonTableExport/hooks/useFilename'
import { useFilename } from 'client/components/ButtonTableExport/hooks/useFilename'
import Icon from 'client/components/Icon'

import * as Utils from './utils'
Expand All @@ -23,7 +23,7 @@ const ButtonTableExport: React.FC<Props> = (props: Props) => {
const isLocked = useIsDataLocked()

const className = useButtonClassName({ disabled: !isLocked && disabled, iconName: 'hit-down', label: 'CSV' })
const filename = useFileName(filenameProp)
const filename = useFilename(filenameProp)

if (print) return null

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Dates } from 'utils/dates'

import { useCycleRouteParams } from 'client/hooks/useRouteParams'

export const useFileName = (filename: string): string => {
export const useFilename = (filename: string): string => {
const { assessmentName, cycleName } = useCycleRouteParams()
return useMemo(() => {
const date = Dates.getCurrentDateISOString()
Expand Down

0 comments on commit a81763e

Please sign in to comment.