diff --git a/app/soapbox/api/hooks/streaming/useDirectStream.ts b/app/soapbox/api/hooks/streaming/useDirectStream.ts index 9d3b47853d..972a5f769a 100644 --- a/app/soapbox/api/hooks/streaming/useDirectStream.ts +++ b/app/soapbox/api/hooks/streaming/useDirectStream.ts @@ -1,4 +1,4 @@ -import { useLoggedIn } from 'soapbox/hooks'; +import { useLoggedIn } from 'soapbox/hooks/useLoggedIn'; import { useTimelineStream } from './useTimelineStream'; diff --git a/app/soapbox/hooks/useCompose.ts b/app/soapbox/hooks/useCompose.ts index 4b3c9959e9..0d0ef1688d 100644 --- a/app/soapbox/hooks/useCompose.ts +++ b/app/soapbox/hooks/useCompose.ts @@ -1,4 +1,4 @@ -import { useAppSelector } from 'soapbox/hooks'; +import { useAppSelector } from './useAppSelector'; import type { ReducerCompose } from 'soapbox/reducers/compose'; diff --git a/app/soapbox/hooks/useInstance.ts b/app/soapbox/hooks/useInstance.ts index 1a6c183620..dab7d2bbe4 100644 --- a/app/soapbox/hooks/useInstance.ts +++ b/app/soapbox/hooks/useInstance.ts @@ -1,4 +1,4 @@ -import { useAppSelector } from 'soapbox/hooks'; +import { useAppSelector } from './useAppSelector'; /** Get the Instance for the current backend. */ export const useInstance = () => { diff --git a/app/soapbox/hooks/useOwnAccount.ts b/app/soapbox/hooks/useOwnAccount.ts index 800f9bb631..6792ca6033 100644 --- a/app/soapbox/hooks/useOwnAccount.ts +++ b/app/soapbox/hooks/useOwnAccount.ts @@ -1,8 +1,9 @@ import { useCallback } from 'react'; -import { useAppSelector } from 'soapbox/hooks'; import { makeGetAccount } from 'soapbox/selectors'; +import { useAppSelector } from './useAppSelector'; + /** Get the logged-in account from the store, if any. */ export const useOwnAccount = () => { const getAccount = useCallback(makeGetAccount(), []); diff --git a/app/soapbox/hooks/useSettings.ts b/app/soapbox/hooks/useSettings.ts index 8ad86af716..85b7a902a2 100644 --- a/app/soapbox/hooks/useSettings.ts +++ b/app/soapbox/hooks/useSettings.ts @@ -1,5 +1,6 @@ import { getSettings } from 'soapbox/actions/settings'; -import { useAppSelector } from 'soapbox/hooks'; + +import { useAppSelector } from './useAppSelector'; import type { Map as ImmutableMap } from 'immutable'; diff --git a/app/soapbox/hooks/useSoapboxConfig.ts b/app/soapbox/hooks/useSoapboxConfig.ts index 92a1ddc212..3f4c33e82f 100644 --- a/app/soapbox/hooks/useSoapboxConfig.ts +++ b/app/soapbox/hooks/useSoapboxConfig.ts @@ -1,5 +1,6 @@ import { getSoapboxConfig } from 'soapbox/actions/soapbox'; -import { useAppSelector } from 'soapbox/hooks'; + +import { useAppSelector } from './useAppSelector'; import type { SoapboxConfig } from 'soapbox/types/soapbox';