hooks: resolve some circular dependencies
This commit is contained in:
parent
91dad5f96c
commit
caa05b7b7f
|
@ -1,4 +1,4 @@
|
||||||
import { useLoggedIn } from 'soapbox/hooks';
|
import { useLoggedIn } from 'soapbox/hooks/useLoggedIn';
|
||||||
|
|
||||||
import { useTimelineStream } from './useTimelineStream';
|
import { useTimelineStream } from './useTimelineStream';
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { useAppSelector } from 'soapbox/hooks';
|
import { useAppSelector } from './useAppSelector';
|
||||||
|
|
||||||
import type { ReducerCompose } from 'soapbox/reducers/compose';
|
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. */
|
/** Get the Instance for the current backend. */
|
||||||
export const useInstance = () => {
|
export const useInstance = () => {
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
import { useCallback } from 'react';
|
import { useCallback } from 'react';
|
||||||
|
|
||||||
import { useAppSelector } from 'soapbox/hooks';
|
|
||||||
import { makeGetAccount } from 'soapbox/selectors';
|
import { makeGetAccount } from 'soapbox/selectors';
|
||||||
|
|
||||||
|
import { useAppSelector } from './useAppSelector';
|
||||||
|
|
||||||
/** Get the logged-in account from the store, if any. */
|
/** Get the logged-in account from the store, if any. */
|
||||||
export const useOwnAccount = () => {
|
export const useOwnAccount = () => {
|
||||||
const getAccount = useCallback(makeGetAccount(), []);
|
const getAccount = useCallback(makeGetAccount(), []);
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
import { getSettings } from 'soapbox/actions/settings';
|
import { getSettings } from 'soapbox/actions/settings';
|
||||||
import { useAppSelector } from 'soapbox/hooks';
|
|
||||||
|
import { useAppSelector } from './useAppSelector';
|
||||||
|
|
||||||
import type { Map as ImmutableMap } from 'immutable';
|
import type { Map as ImmutableMap } from 'immutable';
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
import { getSoapboxConfig } from 'soapbox/actions/soapbox';
|
import { getSoapboxConfig } from 'soapbox/actions/soapbox';
|
||||||
import { useAppSelector } from 'soapbox/hooks';
|
|
||||||
|
import { useAppSelector } from './useAppSelector';
|
||||||
|
|
||||||
import type { SoapboxConfig } from 'soapbox/types/soapbox';
|
import type { SoapboxConfig } from 'soapbox/types/soapbox';
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue