refactor(react): unify imports from system

This commit is contained in:
Pavel Prichodko 2022-04-11 21:36:31 +02:00
parent 555d22e006
commit d9a0fb49ae
No known key found for this signature in database
GPG Key ID: 0EB8D75C775AB6F1
9 changed files with 25 additions and 33 deletions

View File

@ -5,8 +5,7 @@ import * as Collapsible from '@radix-ui/react-collapsible'
import { BellIcon } from '~/src/icons/bell-icon'
import { ChevronDownIcon } from '~/src/icons/chevron-down-icon'
import { styled } from '~/src/styles/config'
import { ContextMenu, ContextMenuTrigger } from '~/src/system/context-menu'
import { Text } from '~/src/system/text'
import { ContextMenu, ContextMenuTrigger, Text } from '~/src/system'
interface Props {
name: string

View File

@ -1,7 +1,7 @@
import React from 'react'
import { ChatMenu } from '~/src/components/chat-menu'
import { ContextMenuTrigger } from '~/src/system/context-menu'
import { ContextMenuTrigger } from '~/src/system'
import { SidebarItem } from '../sidebar-item'

View File

@ -2,9 +2,7 @@ import React from 'react'
import { useCommunity } from '~/src/protocol/use-community'
import { styled } from '~/src/styles/config'
import { Avatar } from '~/src/system/avatar'
import { DialogTrigger } from '~/src/system/dialog'
import { Text } from '~/src/system/text'
import { Avatar, DialogTrigger, Text } from '~/src/system'
import { CommunityDialog } from './community-dialog'

View File

@ -1,10 +1,7 @@
import React from 'react'
import { EditIcon } from '~/src/icons/edit-icon'
import { Box } from '~/src/system'
import { Grid } from '~/src/system/grid'
import { Heading } from '~/src/system/heading'
import { IconButton } from '~/src/system/icon-button'
import { Box, Grid, Heading, IconButton } from '~/src/system'
import { ChatItem } from './chat-item'

View File

@ -1,8 +1,7 @@
import React from 'react'
import { styled } from '~/src/styles/config'
import { Grid } from '~/src/system'
import { Heading } from '~/src/system/heading'
import { Grid, Heading } from '~/src/system'
import { MemberGroup } from './member-group'
import { MemberItem } from './member-item'

View File

@ -8,10 +8,7 @@ import { ImageIcon } from '~/src/icons/image-icon'
import { ReplyIcon } from '~/src/icons/reply-icon'
import { StickerIcon } from '~/src/icons/sticker-icon'
import { styled } from '~/src/styles/config'
import { Icon, Image } from '~/src/system'
import { Flex } from '~/src/system/flex'
import { IconButton } from '~/src/system/icon-button'
import { Text } from '~/src/system/text'
import { Flex, Icon, IconButton, Image, Text } from '~/src/system'
import type { Message } from '~/src/contexts/chat-context'

View File

@ -8,15 +8,23 @@ import { ReactionIcon } from '~/src/icons/reaction-icon'
import { ReplyIcon } from '~/src/icons/reply-icon'
import { TrashIcon } from '~/src/icons/trash-icon'
import { styled } from '~/src/styles/config'
import { AlertDialog, AlertDialogTrigger, Box } from '~/src/system'
import { Avatar } from '~/src/system/avatar'
import { ContextMenu, ContextMenuTrigger } from '~/src/system/context-menu'
import { DropdownMenu, DropdownMenuTrigger } from '~/src/system/dropdown-menu'
import { Flex } from '~/src/system/flex'
import { IconButton } from '~/src/system/icon-button'
import { Image } from '~/src/system/image'
import { Text } from '~/src/system/text'
import { Tooltip } from '~/src/system/tooltip'
import {
AlertDialog,
AlertDialogTrigger,
Avatar,
Box,
Button,
ContextMenu,
ContextMenuTrigger,
DropdownMenu,
DropdownMenuTrigger,
EmojiHash,
Flex,
IconButton,
Image,
Text,
Tooltip,
} from '~/src/system'
interface Props {
reply?: 'text' | 'image' | 'image-text'

View File

@ -9,10 +9,7 @@ import { DotsIcon } from '~/src/icons/dots-icon'
import { GroupIcon } from '~/src/icons/group-icon'
import { useChat } from '~/src/protocol/use-chat'
import { styled } from '~/src/styles/config'
import { Separator } from '~/src/system'
import { DropdownMenuTrigger } from '~/src/system/dropdown-menu'
import { Flex } from '~/src/system/flex'
import { IconButton } from '~/src/system/icon-button'
import { DropdownMenuTrigger, Flex, IconButton, Separator } from '~/src/system'
import { ChatInfo } from '../chat-info'

View File

@ -4,10 +4,7 @@ import { MemberSidebar } from '~/src/components/member-sidebar'
import { useAppState } from '~/src/contexts/app-context'
import { ChatProvider } from '~/src/contexts/chat-context'
import { styled } from '~/src/styles/config'
import { Avatar } from '~/src/system/avatar'
import { Flex } from '~/src/system/flex'
import { Heading } from '~/src/system/heading'
import { Text } from '~/src/system/text'
import { Avatar, Flex, Heading, Text } from '~/src/system'
import { ChatInput } from './chat-input'
import { ChatMessage } from './chat-message'