Skip to content

Commit

Permalink
fix: minor linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Birkbjo committed Oct 21, 2024
1 parent 198a02c commit 4a32088
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/components/form/DefaultFormContents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import i18n from '@dhis2/d2-i18n'
import { Card } from '@dhis2/ui'
import React from 'react'
import { useFormState } from 'react-final-form'
import { useNavigate } from 'react-router-dom'
import { getSectionPath, useNavigateWithSearchState } from '../../lib'
import { ModelSection } from '../../types'
import { StandardFormActions, StandardFormSection } from '../standardForm'
Expand Down
2 changes: 0 additions & 2 deletions src/lib/routeUtils/useLocationSearchState.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { useTo } from './useLocationSearchState'
import { useCallback, useMemo } from 'react'
import {
Location,
Expand Down Expand Up @@ -76,7 +75,6 @@ export const useNavigateWithSearchState = () => {
Use this to re-apply the saved-search-state when navigating between pages. */
export const useToWithSearchState = (to: To) => {
const location = useLocationWithSearchState()

return useMemo(() => {
return applySearchState(to, location.state)
}, [to, location.state])
Expand Down

0 comments on commit 4a32088

Please sign in to comment.