@@ -7,9 +7,17 @@ import { format } from 'timeago.js'
77
88import classNames from 'classnames'
99
10- import { MdVideoCall , MdVolumeOff , MdVolumeUp } from 'react-icons/md'
1110import { IChatItemProps } from '../type'
12- import { FaArrowDown , FaArrowUp } from 'react-icons/fa'
11+
12+ import { HugeiconsIcon } from '@hugeicons/react' ;
13+ import {
14+ Video01Icon ,
15+ VolumeOffIcon ,
16+ VolumeHighIcon ,
17+ ArrowDown01Icon ,
18+ ArrowUp01Icon ,
19+ // @ts -ignore
20+ } from '@hugeicons/core-free-icons' ;
1321
1422const ChatItem : React . FC < IChatItemProps > = ( {
1523 avatarFlexible = false ,
@@ -119,7 +127,7 @@ const ChatItem: React.FC<IChatItemProps> = ({
119127 />
120128 { props . subList && props . subList . length > 0 && (
121129 < button className = 'rce-citem-expand-button' onClick = { ( e ) => onExpandItem ( e , props . id ) } >
122- { props . expanded ? < FaArrowUp /> : < FaArrowDown /> }
130+ { props . expanded ? < HugeiconsIcon icon = { ArrowUp01Icon } /> : < HugeiconsIcon icon = { ArrowDown01Icon } /> }
123131 </ button >
124132 ) }
125133 </ div > ,
@@ -134,20 +142,20 @@ const ChatItem: React.FC<IChatItemProps> = ({
134142 < div className = 'rce-citem-body--bottom-tools' onMouseEnter = { handleOnMouseEnter } onMouseLeave = { handleOnMouseLeave } >
135143 { props . showMute && (
136144 < div className = 'rce-citem-body--bottom-tools-item' onClick = { props . onClickMute } >
137- { props . muted === true && < MdVolumeOff /> }
138- { props . muted === false && < MdVolumeUp /> }
145+ { props . muted === true && < HugeiconsIcon icon = { VolumeOffIcon } /> }
146+ { props . muted === false && < HugeiconsIcon icon = { VolumeHighIcon } /> }
139147 </ div >
140148 ) }
141149 { props . showVideoCall && (
142150 < div className = 'rce-citem-body--bottom-tools-item' onClick = { props . onClickVideoCall } >
143- < MdVideoCall />
151+ < HugeiconsIcon icon = { Video01Icon } />
144152 </ div >
145153 ) }
146154 </ div >
147155 < div className = 'rce-citem-body--bottom-tools-item-hidden-hover' >
148156 { props . showMute && props . muted && (
149157 < div className = 'rce-citem-body--bottom-tools-item' >
150- < MdVolumeOff />
158+ < HugeiconsIcon icon = { VolumeOffIcon } />
151159 </ div >
152160 ) }
153161 </ div >
0 commit comments