hooks: resolve some circular dependencies
This commit is contained in:
parent
91dad5f96c
commit
caa05b7b7f
6 changed files with 9 additions and 6 deletions
|
@ -1,4 +1,4 @@
|
|||
import { useLoggedIn } from 'soapbox/hooks';
|
||||
import { useLoggedIn } from 'soapbox/hooks/useLoggedIn';
|
||||
|
||||
import { useTimelineStream } from './useTimelineStream';
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { useAppSelector } from 'soapbox/hooks';
|
||||
import { useAppSelector } from './useAppSelector';
|
||||
|
||||
import type { ReducerCompose } from 'soapbox/reducers/compose';
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { useAppSelector } from 'soapbox/hooks';
|
||||
import { useAppSelector } from './useAppSelector';
|
||||
|
||||
/** Get the Instance for the current backend. */
|
||||
export const useInstance = () => {
|
||||
|
|
|
@ -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(), []);
|
||||
|
|
|
@ -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';
|
||||
|
||||
|
|
|
@ -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';
|
||||
|
||||
|
|
Loading…
Reference in a new issue