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 { BellIcon } from '~/src/icons/bell-icon'
|
||||||
import { ChevronDownIcon } from '~/src/icons/chevron-down-icon'
|
import { ChevronDownIcon } from '~/src/icons/chevron-down-icon'
|
||||||
import { styled } from '~/src/styles/config'
|
import { styled } from '~/src/styles/config'
|
||||||
import { ContextMenu, ContextMenuTrigger } from '~/src/system/context-menu'
|
import { ContextMenu, ContextMenuTrigger, Text } from '~/src/system'
|
||||||
import { Text } from '~/src/system/text'
|
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
name: string
|
name: string
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
|
|
||||||
import { ChatMenu } from '~/src/components/chat-menu'
|
import { ChatMenu } from '~/src/components/chat-menu'
|
||||||
import { ContextMenuTrigger } from '~/src/system/context-menu'
|
import { ContextMenuTrigger } from '~/src/system'
|
||||||
|
|
||||||
import { SidebarItem } from '../sidebar-item'
|
import { SidebarItem } from '../sidebar-item'
|
||||||
|
|
||||||
|
|
|
@ -2,9 +2,7 @@ import React from 'react'
|
||||||
|
|
||||||
import { useCommunity } from '~/src/protocol/use-community'
|
import { useCommunity } from '~/src/protocol/use-community'
|
||||||
import { styled } from '~/src/styles/config'
|
import { styled } from '~/src/styles/config'
|
||||||
import { Avatar } from '~/src/system/avatar'
|
import { Avatar, DialogTrigger, Text } from '~/src/system'
|
||||||
import { DialogTrigger } from '~/src/system/dialog'
|
|
||||||
import { Text } from '~/src/system/text'
|
|
||||||
|
|
||||||
import { CommunityDialog } from './community-dialog'
|
import { CommunityDialog } from './community-dialog'
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,7 @@
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
|
|
||||||
import { EditIcon } from '~/src/icons/edit-icon'
|
import { EditIcon } from '~/src/icons/edit-icon'
|
||||||
import { Box } from '~/src/system'
|
import { Box, Grid, Heading, IconButton } from '~/src/system'
|
||||||
import { Grid } from '~/src/system/grid'
|
|
||||||
import { Heading } from '~/src/system/heading'
|
|
||||||
import { IconButton } from '~/src/system/icon-button'
|
|
||||||
|
|
||||||
import { ChatItem } from './chat-item'
|
import { ChatItem } from './chat-item'
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
|
|
||||||
import { styled } from '~/src/styles/config'
|
import { styled } from '~/src/styles/config'
|
||||||
import { Grid } from '~/src/system'
|
import { Grid, Heading } from '~/src/system'
|
||||||
import { Heading } from '~/src/system/heading'
|
|
||||||
|
|
||||||
import { MemberGroup } from './member-group'
|
import { MemberGroup } from './member-group'
|
||||||
import { MemberItem } from './member-item'
|
import { MemberItem } from './member-item'
|
||||||
|
|
|
@ -8,10 +8,7 @@ import { ImageIcon } from '~/src/icons/image-icon'
|
||||||
import { ReplyIcon } from '~/src/icons/reply-icon'
|
import { ReplyIcon } from '~/src/icons/reply-icon'
|
||||||
import { StickerIcon } from '~/src/icons/sticker-icon'
|
import { StickerIcon } from '~/src/icons/sticker-icon'
|
||||||
import { styled } from '~/src/styles/config'
|
import { styled } from '~/src/styles/config'
|
||||||
import { Icon, Image } from '~/src/system'
|
import { Flex, Icon, IconButton, Image, Text } from '~/src/system'
|
||||||
import { Flex } from '~/src/system/flex'
|
|
||||||
import { IconButton } from '~/src/system/icon-button'
|
|
||||||
import { Text } from '~/src/system/text'
|
|
||||||
|
|
||||||
import type { Message } from '~/src/contexts/chat-context'
|
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 { ReplyIcon } from '~/src/icons/reply-icon'
|
||||||
import { TrashIcon } from '~/src/icons/trash-icon'
|
import { TrashIcon } from '~/src/icons/trash-icon'
|
||||||
import { styled } from '~/src/styles/config'
|
import { styled } from '~/src/styles/config'
|
||||||
import { AlertDialog, AlertDialogTrigger, Box } from '~/src/system'
|
import {
|
||||||
import { Avatar } from '~/src/system/avatar'
|
AlertDialog,
|
||||||
import { ContextMenu, ContextMenuTrigger } from '~/src/system/context-menu'
|
AlertDialogTrigger,
|
||||||
import { DropdownMenu, DropdownMenuTrigger } from '~/src/system/dropdown-menu'
|
Avatar,
|
||||||
import { Flex } from '~/src/system/flex'
|
Box,
|
||||||
import { IconButton } from '~/src/system/icon-button'
|
Button,
|
||||||
import { Image } from '~/src/system/image'
|
ContextMenu,
|
||||||
import { Text } from '~/src/system/text'
|
ContextMenuTrigger,
|
||||||
import { Tooltip } from '~/src/system/tooltip'
|
DropdownMenu,
|
||||||
|
DropdownMenuTrigger,
|
||||||
|
EmojiHash,
|
||||||
|
Flex,
|
||||||
|
IconButton,
|
||||||
|
Image,
|
||||||
|
Text,
|
||||||
|
Tooltip,
|
||||||
|
} from '~/src/system'
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
reply?: 'text' | 'image' | 'image-text'
|
reply?: 'text' | 'image' | 'image-text'
|
||||||
|
|
|
@ -9,10 +9,7 @@ import { DotsIcon } from '~/src/icons/dots-icon'
|
||||||
import { GroupIcon } from '~/src/icons/group-icon'
|
import { GroupIcon } from '~/src/icons/group-icon'
|
||||||
import { useChat } from '~/src/protocol/use-chat'
|
import { useChat } from '~/src/protocol/use-chat'
|
||||||
import { styled } from '~/src/styles/config'
|
import { styled } from '~/src/styles/config'
|
||||||
import { Separator } from '~/src/system'
|
import { DropdownMenuTrigger, Flex, IconButton, 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 { ChatInfo } from '../chat-info'
|
import { ChatInfo } from '../chat-info'
|
||||||
|
|
||||||
|
|
|
@ -4,10 +4,7 @@ import { MemberSidebar } from '~/src/components/member-sidebar'
|
||||||
import { useAppState } from '~/src/contexts/app-context'
|
import { useAppState } from '~/src/contexts/app-context'
|
||||||
import { ChatProvider } from '~/src/contexts/chat-context'
|
import { ChatProvider } from '~/src/contexts/chat-context'
|
||||||
import { styled } from '~/src/styles/config'
|
import { styled } from '~/src/styles/config'
|
||||||
import { Avatar } from '~/src/system/avatar'
|
import { Avatar, Flex, Heading, Text } from '~/src/system'
|
||||||
import { Flex } from '~/src/system/flex'
|
|
||||||
import { Heading } from '~/src/system/heading'
|
|
||||||
import { Text } from '~/src/system/text'
|
|
||||||
|
|
||||||
import { ChatInput } from './chat-input'
|
import { ChatInput } from './chat-input'
|
||||||
import { ChatMessage } from './chat-message'
|
import { ChatMessage } from './chat-message'
|
||||||
|
|
Loading…
Reference in New Issue