Merge branch 'cycles' into 'develop'
Resolve some circular dependencies See merge request soapbox-pub/soapbox!2688
This commit is contained in:
commit
873837e5da
|
@ -1,4 +1,4 @@
|
|||
import { useLoggedIn } from 'soapbox/hooks';
|
||||
import { useLoggedIn } from 'soapbox/hooks/useLoggedIn';
|
||||
|
||||
import { useTimelineStream } from './useTimelineStream';
|
||||
|
||||
|
|
|
@ -3,9 +3,11 @@ import React from 'react';
|
|||
import { defineMessages, useIntl } from 'react-intl';
|
||||
import { Link } from 'react-router-dom';
|
||||
|
||||
import { HStack, Text } from 'soapbox/components/ui';
|
||||
import SvgIcon from 'soapbox/components/ui/icon/svg-icon';
|
||||
|
||||
import HStack from '../hstack/hstack';
|
||||
import Text from '../text/text';
|
||||
|
||||
const sizes = {
|
||||
md: 'p-4 sm:rounded-xl',
|
||||
lg: 'p-4 sm:p-6 sm:rounded-xl',
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
import { useEffect } from 'react';
|
||||
import { z } from 'zod';
|
||||
|
||||
import { useAppDispatch, useAppSelector, useGetState } from 'soapbox/hooks';
|
||||
import { useAppDispatch } from 'soapbox/hooks/useAppDispatch';
|
||||
import { useAppSelector } from 'soapbox/hooks/useAppSelector';
|
||||
import { useGetState } from 'soapbox/hooks/useGetState';
|
||||
import { filteredArray } from 'soapbox/schemas/utils';
|
||||
|
||||
import { entitiesFetchFail, entitiesFetchRequest, entitiesFetchSuccess } from '../actions';
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
import { importEntities } from 'soapbox/entity-store/actions';
|
||||
import { Entities } from 'soapbox/entity-store/entities';
|
||||
import { type Entity } from 'soapbox/entity-store/types';
|
||||
import { useAppDispatch, useGetState } from 'soapbox/hooks';
|
||||
import { useAppDispatch } from 'soapbox/hooks/useAppDispatch';
|
||||
import { useGetState } from 'soapbox/hooks/useGetState';
|
||||
|
||||
type ChangeEntityFn<TEntity extends Entity> = (entity: TEntity) => TEntity
|
||||
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
import { AxiosError } from 'axios';
|
||||
import { z } from 'zod';
|
||||
|
||||
import { useAppDispatch, useLoading } from 'soapbox/hooks';
|
||||
import { useAppDispatch } from 'soapbox/hooks/useAppDispatch';
|
||||
import { useLoading } from 'soapbox/hooks/useLoading';
|
||||
|
||||
import { importEntities } from '../actions';
|
||||
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
import { useAppDispatch, useGetState, useLoading } from 'soapbox/hooks';
|
||||
import { useAppDispatch } from 'soapbox/hooks/useAppDispatch';
|
||||
import { useGetState } from 'soapbox/hooks/useGetState';
|
||||
import { useLoading } from 'soapbox/hooks/useLoading';
|
||||
|
||||
import { deleteEntities, importEntities } from '../actions';
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import { useAppDispatch, useLoading } from 'soapbox/hooks';
|
||||
import { useAppDispatch } from 'soapbox/hooks/useAppDispatch';
|
||||
import { useLoading } from 'soapbox/hooks/useLoading';
|
||||
|
||||
import { dismissEntities } from '../actions';
|
||||
|
||||
|
|
|
@ -2,7 +2,10 @@ import { useEffect } from 'react';
|
|||
import z from 'zod';
|
||||
|
||||
import { getNextLink, getPrevLink } from 'soapbox/api';
|
||||
import { useApi, useAppDispatch, useAppSelector, useGetState } from 'soapbox/hooks';
|
||||
import { useApi } from 'soapbox/hooks/useApi';
|
||||
import { useAppDispatch } from 'soapbox/hooks/useAppDispatch';
|
||||
import { useAppSelector } from 'soapbox/hooks/useAppSelector';
|
||||
import { useGetState } from 'soapbox/hooks/useGetState';
|
||||
import { filteredArray } from 'soapbox/schemas/utils';
|
||||
import { realNumberSchema } from 'soapbox/utils/numbers';
|
||||
|
||||
|
|
|
@ -2,7 +2,9 @@ import { AxiosError } from 'axios';
|
|||
import { useEffect, useState } from 'react';
|
||||
import z from 'zod';
|
||||
|
||||
import { useAppDispatch, useAppSelector, useLoading } from 'soapbox/hooks';
|
||||
import { useAppDispatch } from 'soapbox/hooks/useAppDispatch';
|
||||
import { useAppSelector } from 'soapbox/hooks/useAppSelector';
|
||||
import { useLoading } from 'soapbox/hooks/useLoading';
|
||||
|
||||
import { importEntities } from '../actions';
|
||||
import { selectEntity } from '../selectors';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { useApi } from 'soapbox/hooks';
|
||||
import { useApi } from 'soapbox/hooks/useApi';
|
||||
|
||||
import { useCreateEntity } from './useCreateEntity';
|
||||
import { useDeleteEntity } from './useDeleteEntity';
|
||||
|
|
|
@ -2,7 +2,9 @@ import { AxiosError } from 'axios';
|
|||
import { useEffect, useState } from 'react';
|
||||
import { z } from 'zod';
|
||||
|
||||
import { useAppDispatch, useAppSelector, useLoading } from 'soapbox/hooks';
|
||||
import { useAppDispatch } from 'soapbox/hooks/useAppDispatch';
|
||||
import { useAppSelector } from 'soapbox/hooks/useAppSelector';
|
||||
import { useLoading } from 'soapbox/hooks/useLoading';
|
||||
|
||||
import { importEntities } from '../actions';
|
||||
import { findEntity } from '../selectors';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import { useAppDispatch, useLoading } from 'soapbox/hooks';
|
||||
import { useAppDispatch } from 'soapbox/hooks/useAppDispatch';
|
||||
import { useLoading } from 'soapbox/hooks/useLoading';
|
||||
|
||||
import { incrementEntities } from '../actions';
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { entitiesTransaction } from 'soapbox/entity-store/actions';
|
||||
import { useAppDispatch } from 'soapbox/hooks';
|
||||
import { useAppDispatch } from 'soapbox/hooks/useAppDispatch';
|
||||
|
||||
import type { EntityTypes } from 'soapbox/entity-store/entities';
|
||||
import type { EntitiesTransaction, Entity } from 'soapbox/entity-store/types';
|
||||
|
|
|
@ -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 { useGroups } from 'soapbox/api/hooks';
|
||||
import { useGroups } from 'soapbox/api/hooks/groups/useGroups';
|
||||
|
||||
import { useFeatures } from './useFeatures';
|
||||
|
||||
|
|
|
@ -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 New Issue