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 { useRouteMatch } from 'react-router-dom';
|
||||
|
||||
import { Tabs } from 'pl-fe/components/ui';
|
||||
import Tabs from 'pl-fe/components/ui/tabs';
|
||||
import { useAppSelector } from 'pl-fe/hooks';
|
||||
|
||||
const messages = defineMessages({
|
||||
|
||||
@ -2,7 +2,7 @@ import React from 'react';
|
||||
import { FormattedNumber } from 'react-intl';
|
||||
import { Link } from 'react-router-dom';
|
||||
|
||||
import { Text } from 'pl-fe/components/ui';
|
||||
import Text from 'pl-fe/components/ui/text';
|
||||
import { isNumber } from 'pl-fe/utils/numbers';
|
||||
|
||||
interface IDashCounter {
|
||||
|
||||
@ -4,7 +4,7 @@ import { defineMessages, useIntl } from 'react-intl';
|
||||
import { useHistory } from 'react-router-dom';
|
||||
|
||||
import { fetchUsers } from 'pl-fe/actions/admin';
|
||||
import { Widget } from 'pl-fe/components/ui';
|
||||
import Widget from 'pl-fe/components/ui/widget';
|
||||
import AccountContainer from 'pl-fe/containers/account-container';
|
||||
import { useAppDispatch, useAppSelector } from 'pl-fe/hooks';
|
||||
|
||||
|
||||
@ -5,7 +5,8 @@ import { deleteStatusModal } from 'pl-fe/actions/moderation';
|
||||
import DropdownMenu from 'pl-fe/components/dropdown-menu';
|
||||
import StatusContent from 'pl-fe/components/status-content';
|
||||
import StatusMedia from 'pl-fe/components/status-media';
|
||||
import { HStack, Stack } from 'pl-fe/components/ui';
|
||||
import HStack from 'pl-fe/components/ui/hstack';
|
||||
import Stack from 'pl-fe/components/ui/stack';
|
||||
import { useAppDispatch } from 'pl-fe/hooks';
|
||||
|
||||
import type { SelectedStatus } from 'pl-fe/selectors';
|
||||
|
||||
@ -6,7 +6,12 @@ import { closeReport } from 'pl-fe/actions/admin';
|
||||
import { deactivateUserModal, deleteUserModal } from 'pl-fe/actions/moderation';
|
||||
import DropdownMenu from 'pl-fe/components/dropdown-menu';
|
||||
import HoverAccountWrapper from 'pl-fe/components/hover-account-wrapper';
|
||||
import { Accordion, Avatar, Button, Stack, HStack, Text } from 'pl-fe/components/ui';
|
||||
import Accordion from 'pl-fe/components/ui/accordion';
|
||||
import Avatar from 'pl-fe/components/ui/avatar';
|
||||
import Button from 'pl-fe/components/ui/button';
|
||||
import Stack from 'pl-fe/components/ui/stack';
|
||||
import HStack from 'pl-fe/components/ui/hstack';
|
||||
import Text from 'pl-fe/components/ui/text';
|
||||
import { useAppDispatch, useAppSelector } from 'pl-fe/hooks';
|
||||
import { makeGetReport } from 'pl-fe/selectors';
|
||||
import toast from 'pl-fe/toast';
|
||||
|
||||
@ -3,7 +3,9 @@ import React from 'react';
|
||||
import { approveUser, deleteUser } from 'pl-fe/actions/admin';
|
||||
import { useAccount } from 'pl-fe/api/hooks';
|
||||
import { AuthorizeRejectButtons } from 'pl-fe/components/authorize-reject-buttons';
|
||||
import { Stack, HStack, Text } from 'pl-fe/components/ui';
|
||||
import Stack from 'pl-fe/components/ui/stack';
|
||||
import HStack from 'pl-fe/components/ui/hstack';
|
||||
import Text from 'pl-fe/components/ui/text';
|
||||
import { useAppSelector, useAppDispatch } from 'pl-fe/hooks';
|
||||
|
||||
interface IUnapprovedAccount {
|
||||
|
||||
@ -2,7 +2,7 @@ import React from 'react';
|
||||
import { defineMessages, useIntl } from 'react-intl';
|
||||
import { Switch, Route } from 'react-router-dom';
|
||||
|
||||
import { Column } from 'pl-fe/components/ui';
|
||||
import Column from 'pl-fe/components/ui/column';
|
||||
import { useOwnAccount } from 'pl-fe/hooks';
|
||||
|
||||
import AdminTabs from './components/admin-tabs';
|
||||
|
||||
Reference in New Issue
Block a user