diff --git a/src/components/inventory/Inventory.tsx b/src/components/inventory/Inventory.tsx index fa420067..76036166 100644 --- a/src/components/inventory/Inventory.tsx +++ b/src/components/inventory/Inventory.tsx @@ -2,7 +2,7 @@ import { useEffect, useState } from 'react'; import { useSources } from '../../hooks/sources/useSources'; -import { useSetSourceToPerge } from '../../hooks/sources/useSetSourceToPerge'; +import { useSetSourceToPurge } from '../../hooks/sources/useSetSourceToPurge'; import FilterOptions from '../../components/filter/FilterOptions'; import SourceListItem from '../../components/sourceListItem/SourceListItem'; import { SourceWithId } from '../../interfaces/Source'; @@ -11,7 +11,7 @@ import FilterContext from './FilterContext'; import styles from './Inventory.module.scss'; export default function Inventory() { - const [removeInventorySource, reloadList] = useSetSourceToPerge(); + const [removeInventorySource, reloadList] = useSetSourceToPurge(); const [updatedSource, setUpdatedSource] = useState< SourceWithId | undefined >(); diff --git a/src/hooks/sources/useSetSourceToPerge.tsx b/src/hooks/sources/useSetSourceToPurge.tsx similarity index 96% rename from src/hooks/sources/useSetSourceToPerge.tsx rename to src/hooks/sources/useSetSourceToPurge.tsx index 37ce4712..75818cf5 100644 --- a/src/hooks/sources/useSetSourceToPerge.tsx +++ b/src/hooks/sources/useSetSourceToPurge.tsx @@ -3,7 +3,7 @@ import { SourceWithId } from '../../interfaces/Source'; import { CallbackHook } from '../types'; import { Log } from '../../api/logger'; -export function useSetSourceToPerge(): CallbackHook< +export function useSetSourceToPurge(): CallbackHook< (source: SourceWithId) => void > { const [reloadList, setReloadList] = useState(false);