diff --git a/app/soapbox/api/hooks/streaming/useDirectStream.ts b/app/soapbox/api/hooks/streaming/useDirectStream.ts index 9d3b47853..972a5f769 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 4b3c9959e..0d0ef1688 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 1a6c18362..dab7d2bbe 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 800f9bb63..6792ca603 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 8ad86af71..85b7a902a 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 92a1ddc21..3f4c33e82 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';