pl-fe: Avoid barrel imports
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
@@ -2,7 +2,7 @@ import React from 'react';
|
||||
import { useIntl, defineMessages } from 'react-intl';
|
||||
|
||||
import { pinHost, unpinHost } from 'pl-fe/actions/remote-timeline';
|
||||
import { Widget } from 'pl-fe/components/ui';
|
||||
import Widget from 'pl-fe/components/ui/widget';
|
||||
import { useAppSelector, useAppDispatch, useSettings } from 'pl-fe/hooks';
|
||||
import { makeGetRemoteInstance } from 'pl-fe/selectors';
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ import React from 'react';
|
||||
import { useIntl, defineMessages, FormattedMessage } from 'react-intl';
|
||||
|
||||
import DropdownMenu from 'pl-fe/components/dropdown-menu';
|
||||
import { Widget } from 'pl-fe/components/ui';
|
||||
import Widget from 'pl-fe/components/ui/widget';
|
||||
import InstanceRestrictions from 'pl-fe/features/federation-restrictions/components/instance-restrictions';
|
||||
import { useAppSelector, useOwnAccount } from 'pl-fe/hooks';
|
||||
import { makeGetRemoteInstance } from 'pl-fe/selectors';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import React from 'react';
|
||||
|
||||
import { useGroups } from 'pl-fe/api/hooks';
|
||||
import { Widget } from 'pl-fe/components/ui';
|
||||
import Widget from 'pl-fe/components/ui/widget';
|
||||
import GroupListItem from 'pl-fe/features/groups/components/discover/group-list-item';
|
||||
import PlaceholderGroupSearch from 'pl-fe/features/placeholder/components/placeholder-group-search';
|
||||
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
import React from 'react';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
|
||||
import { Button, Stack, Text } from 'pl-fe/components/ui';
|
||||
import Button from 'pl-fe/components/ui/button';
|
||||
import Stack from 'pl-fe/components/ui/stack';
|
||||
import Text from 'pl-fe/components/ui/text';
|
||||
import { useModalsStore } from 'pl-fe/stores';
|
||||
|
||||
const NewEventPanel = () => {
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
import React from 'react';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
|
||||
import { Button, Stack, Text } from 'pl-fe/components/ui';
|
||||
import Button from 'pl-fe/components/ui/button';
|
||||
import Stack from 'pl-fe/components/ui/stack';
|
||||
import Text from 'pl-fe/components/ui/text';
|
||||
import { useModalsStore } from 'pl-fe/stores';
|
||||
|
||||
const NewGroupPanel = () => {
|
||||
|
||||
@@ -3,7 +3,7 @@ import React, { useEffect } from 'react';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
|
||||
import { fetchPinnedAccounts } from 'pl-fe/actions/accounts';
|
||||
import { Widget } from 'pl-fe/components/ui';
|
||||
import Widget from 'pl-fe/components/ui/widget';
|
||||
import AccountContainer from 'pl-fe/containers/account-container';
|
||||
import { WhoToFollowPanel } from 'pl-fe/features/ui/util/async-components';
|
||||
import { useAppDispatch, useAppSelector } from 'pl-fe/hooks';
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import React from 'react';
|
||||
|
||||
import { Widget, Stack } from 'pl-fe/components/ui';
|
||||
import Widget from 'pl-fe/components/ui/widget';
|
||||
import Stack from 'pl-fe/components/ui/stack';
|
||||
|
||||
import ProfileField from '../profile-field';
|
||||
|
||||
|
||||
@@ -2,7 +2,8 @@ import React from 'react';
|
||||
|
||||
import ForkAwesomeIcon from 'pl-fe/components/fork-awesome-icon';
|
||||
import List, { ListItem } from 'pl-fe/components/list';
|
||||
import { Widget, HStack } from 'pl-fe/components/ui';
|
||||
import HStack from 'pl-fe/components/ui/hstack';
|
||||
import Widget from 'pl-fe/components/ui/widget';
|
||||
import { useInstance, useSettings, usePlFeConfig } from 'pl-fe/hooks';
|
||||
|
||||
const PromoPanel: React.FC = () => {
|
||||
|
||||
@@ -4,7 +4,9 @@ import { Redirect } from 'react-router-dom';
|
||||
|
||||
import { logIn, switchAccount, verifyCredentials } from 'pl-fe/actions/auth';
|
||||
import { fetchInstance } from 'pl-fe/actions/instance';
|
||||
import { Button, Stack, Text } from 'pl-fe/components/ui';
|
||||
import Button from 'pl-fe/components/ui/button';
|
||||
import Stack from 'pl-fe/components/ui/stack';
|
||||
import Text from 'pl-fe/components/ui/text';
|
||||
import LoginForm from 'pl-fe/features/auth-login/components/login-form';
|
||||
import OtpAuthForm from 'pl-fe/features/auth-login/components/otp-auth-form';
|
||||
import ExternalLoginForm from 'pl-fe/features/external-login/components/external-login-form';
|
||||
|
||||
@@ -4,7 +4,8 @@ import { Link } from 'react-router-dom';
|
||||
|
||||
import { setFilter } from 'pl-fe/actions/search';
|
||||
import Hashtag from 'pl-fe/components/hashtag';
|
||||
import { Text, Widget } from 'pl-fe/components/ui';
|
||||
import Text from 'pl-fe/components/ui/text';
|
||||
import Widget from 'pl-fe/components/ui/widget';
|
||||
import PlaceholderSidebarTrends from 'pl-fe/features/placeholder/components/placeholder-sidebar-trends';
|
||||
import { useAppDispatch } from 'pl-fe/hooks';
|
||||
import useTrends from 'pl-fe/queries/trends';
|
||||
|
||||
@@ -4,7 +4,10 @@ import { Link } from 'react-router-dom';
|
||||
|
||||
import { useAccount } from 'pl-fe/api/hooks';
|
||||
import StillImage from 'pl-fe/components/still-image';
|
||||
import { Avatar, HStack, Stack, Text } from 'pl-fe/components/ui';
|
||||
import Avatar from 'pl-fe/components/ui/avatar';
|
||||
import HStack from 'pl-fe/components/ui/hstack';
|
||||
import Stack from 'pl-fe/components/ui/stack';
|
||||
import Text from 'pl-fe/components/ui/text';
|
||||
import VerificationBadge from 'pl-fe/components/verification-badge';
|
||||
import { useAppSelector, useSettings } from 'pl-fe/hooks';
|
||||
import { getAcct } from 'pl-fe/utils/accounts';
|
||||
|
||||
@@ -2,7 +2,8 @@ import React from 'react';
|
||||
import { defineMessages, FormattedMessage, useIntl } from 'react-intl';
|
||||
import { Link } from 'react-router-dom';
|
||||
|
||||
import { Text, Widget } from 'pl-fe/components/ui';
|
||||
import Text from 'pl-fe/components/ui/text';
|
||||
import Widget from 'pl-fe/components/ui/widget';
|
||||
import AccountContainer from 'pl-fe/containers/account-container';
|
||||
import PlaceholderSidebarSuggestions from 'pl-fe/features/placeholder/components/placeholder-sidebar-suggestions';
|
||||
import { useFeatures } from 'pl-fe/hooks';
|
||||
|
||||
Reference in New Issue
Block a user