Skip to content

Commit 6cd283b

Browse files
authored
fix: delete message action UI and resend icon (#2597)
1 parent a7387a2 commit 6cd283b

File tree

4 files changed

+26
-9
lines changed

4 files changed

+26
-9
lines changed

package/src/components/Message/hooks/useMessageActions.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import {
1818
MessageFlag,
1919
Mute,
2020
Pin,
21-
SendUp,
21+
Resend,
2222
ThreadReply,
2323
Unpin,
2424
UserDelete,
@@ -95,7 +95,7 @@ export const useMessageActions = <
9595
}) => {
9696
const {
9797
theme: {
98-
colors: { accent_blue, accent_red, grey },
98+
colors: { accent_red, grey },
9999
},
100100
} = useTheme();
101101
const {
@@ -179,7 +179,7 @@ export const useMessageActions = <
179179
handleDeleteMessage();
180180
},
181181
actionType: 'deleteMessage',
182-
icon: <Delete fill={accent_red} size={32} />,
182+
icon: <Delete fill={accent_red} size={24} />,
183183
title: t('Delete Message'),
184184
titleStyle: { color: accent_red },
185185
};
@@ -206,7 +206,7 @@ export const useMessageActions = <
206206
handleTogglePinMessage();
207207
},
208208
actionType: 'pinMessage',
209-
icon: <Pin height={23} pathFill={grey} width={24} />,
209+
icon: <Pin pathFill={grey} size={24} />,
210210
title: t('Pin to Conversation'),
211211
};
212212

@@ -289,7 +289,7 @@ export const useMessageActions = <
289289
await handleResendMessage();
290290
},
291291
actionType: 'retry',
292-
icon: <SendUp fill={accent_blue} size={32} />,
292+
icon: <Resend pathFill={grey} />,
293293
title: t('Resend'),
294294
};
295295

package/src/icons/Pin.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,15 @@ import React from 'react';
22

33
import { IconProps, RootPath, RootSvg } from './utils/base';
44

5-
export const Pin = (props: IconProps) => (
5+
type Props = IconProps & {
6+
size: number;
7+
};
8+
9+
export const Pin = (props: Props) => (
610
<RootSvg
7-
height={props.height}
8-
viewBox={`0 0 ${props.height} ${props.width}`}
9-
width={props.width}
11+
height={props.size}
12+
viewBox={`0 0 ${props.size} ${props.size}`}
13+
width={props.size}
1014
{...props}
1115
>
1216
<RootPath

package/src/icons/Resend.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import React from 'react';
2+
3+
import { IconProps, RootPath, RootSvg } from './utils/base';
4+
5+
export const Resend = (props: IconProps) => (
6+
<RootSvg {...props}>
7+
<RootPath
8+
d='M10 8.5V4.5L3 11.5L10 18.5V14.4C15 14.4 18.5 16 21 19.5C20 14.5 17 9.5 10 8.5Z'
9+
{...props}
10+
/>
11+
</RootSvg>
12+
);

package/src/icons/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ export * from './PPT';
6161
export * from './PPTX';
6262
export * from './RAR';
6363
export * from './Refresh';
64+
export * from './Resend';
6465
export * from './RTF';
6566
export * from './Search';
6667
export * from './SendCheck';

0 commit comments

Comments
 (0)