Skip to content

Commit 36cbd03

Browse files
committed
chore: add unpin icon
1 parent ea1a824 commit 36cbd03

File tree

3 files changed

+24
-3
lines changed

3 files changed

+24
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import {
2626
Pin,
2727
Resend,
2828
ThreadReply,
29-
// Unpin,
29+
Unpin,
3030
UnreadIndicator,
3131
UserDelete,
3232
} from '../../../icons';
@@ -330,8 +330,7 @@ export const useMessageActions = ({
330330
const unpinMessage: MessageActionType = {
331331
action: onTogglePinMessage,
332332
actionType: 'unpinMessage',
333-
// TODO: V9: This icon does not exist yet, replace the old when when we get a new one
334-
icon: <Pin width={20} height={20} stroke={semantics.textSecondary} />,
333+
icon: <Unpin width={20} height={20} stroke={semantics.textSecondary} />,
335334
title: t('Unpin from Conversation'),
336335
type: 'standard',
337336
};

package/src/icons/Unpin.tsx

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import React from 'react';
2+
3+
import { Path, Svg } from 'react-native-svg';
4+
5+
import { IconProps } from './utils/base';
6+
7+
export const Unpin = ({ fill, height, pathFill, size, stroke, width, ...rest }: IconProps) => {
8+
const color = stroke ?? pathFill ?? fill ?? 'black';
9+
10+
return (
11+
<Svg fill='none' height={height ?? size} viewBox='0 0 20 20' width={width ?? size} {...rest}>
12+
<Path
13+
d='M7.52271 12.4773L3.75006 16.25M3.75006 3.12498L16.2501 16.875M14.4532 11.1828L17.9415 7.68279C18.0586 7.56559 18.1244 7.40668 18.1244 7.24099C18.1244 7.0753 18.0586 6.9164 17.9415 6.7992L13.2032 2.05779C13.086 1.94067 12.9271 1.87488 12.7614 1.87488C12.5957 1.87488 12.4368 1.94067 12.3196 2.05779L9.09615 5.28904M6.58756 6.24998C5.74537 6.18435 4.57271 6.3531 3.35943 7.33201C3.29077 7.38697 3.23447 7.45581 3.19424 7.53402C3.154 7.61224 3.13072 7.69806 3.12593 7.78589C3.12114 7.87371 3.13493 7.96156 3.16642 8.04369C3.19791 8.12581 3.24637 8.20037 3.30865 8.26248L11.7383 16.6914C11.8015 16.7541 11.8773 16.8025 11.9606 16.8336C12.044 16.8646 12.133 16.8775 12.2218 16.8713C12.3105 16.8652 12.3969 16.8402 12.4752 16.798C12.5535 16.7558 12.6219 16.6973 12.6758 16.6265C13.0829 16.0851 13.6344 15.1898 13.779 14.1594'
14+
stroke={color}
15+
strokeLinecap='round'
16+
strokeLinejoin='round'
17+
strokeWidth={1.5}
18+
/>
19+
</Svg>
20+
);
21+
};

package/src/icons/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export * from './Stop';
4343
export * from './ThreadReply';
4444
export * from './Time';
4545
export * from './Unknown';
46+
export * from './Unpin';
4647
export * from './Recorder';
4748
export * from './User';
4849
export * from './UserAdd';

0 commit comments

Comments
 (0)