Skip to content

Commit 241209e

Browse files
fix: use link icon for link-type attachments (#3083)
before/after: <img width="402" height="178" alt="Screenshot 2026-03-31 at 3 13 00 PM" src="https://github.com/user-attachments/assets/936bea4b-8144-4afa-bdcd-9f91e66d0bfd" /> <img width="402" height="178" alt="Screenshot 2026-03-31 at 3 12 38 PM" src="https://github.com/user-attachments/assets/8a44bbbf-c739-4842-b4cd-b5c9397dd68a" />
1 parent 6c06e04 commit 241209e

File tree

6 files changed

+407
-45
lines changed

6 files changed

+407
-45
lines changed

src/components/Icons/IconGiphy.tsx

Lines changed: 0 additions & 35 deletions
This file was deleted.

src/components/Icons/icons.tsx

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -963,3 +963,31 @@ export const IconLoading = createIcon(
963963
/>
964964
</>,
965965
);
966+
967+
export const IconGiphy = createIcon(
968+
'IconGiphy',
969+
<>
970+
<rect fill='black' height='20' rx='10' width='20' />
971+
<path
972+
clipRule='evenodd'
973+
d='M6.5997 5.50012H13.4008V14.4998H6.59912L6.5997 5.50012Z'
974+
fill='black'
975+
fillRule='evenodd'
976+
/>
977+
<path d='M5.24023 5.1665H6.59998V14.8335H5.24023V5.1665Z' fill='#04FF8E' />
978+
<path d='M13.4004 7.8335H14.7601V14.8335H13.4004V7.8335Z' fill='#8E2EFF' />
979+
<path d='M5.24023 14.4999H14.7602V15.8334H5.24023V14.4999Z' fill='#00C5FF' />
980+
<path d='M5.24023 4.16663H10.6804V5.50013H5.24023V4.16663Z' fill='#FFF152' />
981+
<path
982+
d='M13.4003 6.83304V5.50013H12.0399V4.16663H10.6802V8.16654H14.76V6.83304'
983+
fill='#FF5B5B'
984+
/>
985+
<path d='M13.4004 9.50013V8.16663H14.7601' fill='#551C99' />
986+
<path
987+
clipRule='evenodd'
988+
d='M10.6802 4.16663V5.50013H9.31982'
989+
fill='#999131'
990+
fillRule='evenodd'
991+
/>
992+
</>,
993+
);

src/components/Icons/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
export { createIcon } from './createIcon';
22
export * from './icons';
3-
export * from './IconGiphy';

src/components/SummarizedMessagePreview/SummarizedMessagePreview.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {
1313
IconClock,
1414
IconExclamationCircleFill,
1515
IconFile,
16+
IconGiphy,
1617
IconLink,
1718
IconLocation,
1819
IconNoSign,
@@ -33,7 +34,7 @@ const contentTypeIconMap: Partial<
3334
deleted: IconNoSign,
3435
error: IconExclamationCircleFill,
3536
file: IconFile,
36-
giphy: IconFile,
37+
giphy: IconGiphy,
3738
image: IconCamera,
3839
link: IconLink,
3940
location: IconLocation,

0 commit comments

Comments
 (0)