Skip to content

Commit ef88129

Browse files
committed
refactor: 调整Avatar组件引用方式
1 parent 0290a02 commit ef88129

File tree

6 files changed

+5
-11
lines changed

6 files changed

+5
-11
lines changed

client/packages/design/components/Avatar/combined.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { Avatar, AvatarProps } from '.';
22
import React from 'react';
33
import _take from 'lodash/take';
4-
import './combined.css';
54
import { px2rem } from './utils';
5+
import './combined.css';
66

77
interface CombinedAvatarProps {
88
shape?: 'circle' | 'square';

client/web/src/components/Avatar.tsx

Lines changed: 0 additions & 6 deletions
This file was deleted.

client/web/src/components/modals/CreateGroup.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ import {
99
groupActions,
1010
} from 'tailchat-shared';
1111
import type { GroupPanel } from 'tailchat-shared';
12-
import { Avatar } from '../Avatar';
1312
import { closeModal, ModalWrapper } from '../Modal';
1413
import { Slides, SlidesRef } from '../Slides';
1514
import { useNavigate } from 'react-router';
1615
import { applyDefaultFallbackGroupPermission } from 'tailchat-shared';
16+
import { Avatar } from 'tailchat-design';
1717

1818
const panelTemplate: {
1919
key: string;

client/web/src/components/modals/GroupDetail/Summary.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { Avatar } from '@/components/Avatar';
21
import { AvatarUploader } from '@/components/AvatarUploader';
32
import { FullModalCommonTitle } from '@/components/FullModal/CommonTitle';
43
import {
@@ -7,6 +6,7 @@ import {
76
} from '@/components/FullModal/Field';
87
import { NoData } from '@/components/NoData';
98
import React from 'react';
9+
import { Avatar } from 'tailchat-design';
1010
import {
1111
modifyGroupField,
1212
showToasts,

client/web/src/routes/Main/Content/Personal/Friends/AddFriend.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { Avatar } from '@/components/Avatar';
21
import { Highlight } from '@/components/Highlight';
32
import { Button, Divider, Empty, Typography } from 'antd';
43
import {
@@ -14,6 +13,7 @@ import {
1413
} from 'tailchat-shared';
1514
import React, { useCallback, useState } from 'react';
1615
import _isNil from 'lodash/isNil';
16+
import { Avatar } from 'tailchat-design';
1717

1818
const SearchFriendResult: React.FC<{
1919
result: UserBaseInfo | undefined | null;

client/web/src/routes/Main/Content/SidebarItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import React from 'react';
22
import { useLocation } from 'react-router';
33
import { Link } from 'react-router-dom';
44
import { Typography, Badge } from 'antd';
5-
import { Avatar } from '@/components/Avatar';
65
import clsx from 'clsx';
6+
import { Avatar } from 'tailchat-design';
77

88
interface SidebarItemProps {
99
name: string;

0 commit comments

Comments
 (0)