Skip to content

Commit

Permalink
fix: delete message action UI and resend icon (#2597)
Browse files Browse the repository at this point in the history
  • Loading branch information
khushal87 authored Jul 19, 2024
1 parent a7387a2 commit 6cd283b
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 9 deletions.
10 changes: 5 additions & 5 deletions package/src/components/Message/hooks/useMessageActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {
MessageFlag,
Mute,
Pin,
SendUp,
Resend,
ThreadReply,
Unpin,
UserDelete,
Expand Down Expand Up @@ -95,7 +95,7 @@ export const useMessageActions = <
}) => {
const {
theme: {
colors: { accent_blue, accent_red, grey },
colors: { accent_red, grey },
},
} = useTheme();
const {
Expand Down Expand Up @@ -179,7 +179,7 @@ export const useMessageActions = <
handleDeleteMessage();
},
actionType: 'deleteMessage',
icon: <Delete fill={accent_red} size={32} />,
icon: <Delete fill={accent_red} size={24} />,
title: t('Delete Message'),
titleStyle: { color: accent_red },
};
Expand All @@ -206,7 +206,7 @@ export const useMessageActions = <
handleTogglePinMessage();
},
actionType: 'pinMessage',
icon: <Pin height={23} pathFill={grey} width={24} />,
icon: <Pin pathFill={grey} size={24} />,
title: t('Pin to Conversation'),
};

Expand Down Expand Up @@ -289,7 +289,7 @@ export const useMessageActions = <
await handleResendMessage();
},
actionType: 'retry',
icon: <SendUp fill={accent_blue} size={32} />,
icon: <Resend pathFill={grey} />,
title: t('Resend'),
};

Expand Down
12 changes: 8 additions & 4 deletions package/src/icons/Pin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@ import React from 'react';

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

export const Pin = (props: IconProps) => (
type Props = IconProps & {
size: number;
};

export const Pin = (props: Props) => (
<RootSvg
height={props.height}
viewBox={`0 0 ${props.height} ${props.width}`}
width={props.width}
height={props.size}
viewBox={`0 0 ${props.size} ${props.size}`}
width={props.size}
{...props}
>
<RootPath
Expand Down
12 changes: 12 additions & 0 deletions package/src/icons/Resend.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React from 'react';

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

export const Resend = (props: IconProps) => (
<RootSvg {...props}>
<RootPath
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'
{...props}
/>
</RootSvg>
);
1 change: 1 addition & 0 deletions package/src/icons/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ export * from './PPT';
export * from './PPTX';
export * from './RAR';
export * from './Refresh';
export * from './Resend';
export * from './RTF';
export * from './Search';
export * from './SendCheck';
Expand Down

0 comments on commit 6cd283b

Please sign in to comment.