refactor(react): unify imports from system
This commit is contained in:
parent
555d22e006
commit
d9a0fb49ae
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
||||
|
|
|
@ -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'
|
||||
|
||||
|
|
|
@ -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'
|
||||
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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'
|
||||
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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'
|
||||
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue