Browse Source

feat(chat): have unique icons for join and part messages. Closes #3421

pull/3423/head
Gabe Kangas 2 years ago
parent
commit
34a474b30d
No known key found for this signature in database
GPG Key ID: 4345B2060657F330
  1. 4
      web/components/chat/ChatJoinMessage/ChatJoinMessage.tsx
  2. 4
      web/components/chat/ChatPartMessage/ChatPartMessage.tsx

4
web/components/chat/ChatJoinMessage/ChatJoinMessage.tsx

@ -6,7 +6,7 @@ import styles from './ChatJoinMessage.module.scss';
// Lazy loaded components // Lazy loaded components
const TeamOutlined = dynamic(() => import('@ant-design/icons/TeamOutlined'), { const UsergroupAddOutlined = dynamic(() => import('@ant-design/icons/UsergroupAddOutlined'), {
ssr: false, ssr: false,
}); });
@ -27,7 +27,7 @@ export const ChatJoinMessage: FC<ChatJoinMessageProps> = ({
<div className={styles.root}> <div className={styles.root}>
<span style={{ color }}> <span style={{ color }}>
<span className={styles.icon}> <span className={styles.icon}>
<TeamOutlined /> <UsergroupAddOutlined />
</span> </span>
<span className={styles.user}>{displayName}</span> <span className={styles.user}>{displayName}</span>
{isAuthorModerator && ( {isAuthorModerator && (

4
web/components/chat/ChatPartMessage/ChatPartMessage.tsx

@ -6,7 +6,7 @@ import styles from './ChatPartMessage.module.scss';
// Lazy loaded components // Lazy loaded components
const TeamOutlined = dynamic(() => import('@ant-design/icons/TeamOutlined'), { const UsergroupDeleteOutlined = dynamic(() => import('@ant-design/icons/UsergroupDeleteOutlined'), {
ssr: false, ssr: false,
}); });
@ -27,7 +27,7 @@ export const ChatPartMessage: FC<ChatPartMessageProps> = ({
<div className={styles.root}> <div className={styles.root}>
<span style={{ color }}> <span style={{ color }}>
<span className={styles.icon}> <span className={styles.icon}>
<TeamOutlined /> <UsergroupDeleteOutlined />
</span> </span>
<span className={styles.user}>{displayName}</span> <span className={styles.user}>{displayName}</span>
{isAuthorModerator && ( {isAuthorModerator && (

Loading…
Cancel
Save