···
2
2
3
3
import type { UrlCard, Collection, User } from '@/api-client';
4
4
import { Anchor, Card, Group, Stack, Text } from '@mantine/core';
5
5
+
import { BsPinFill } from 'react-icons/bs';
5
6
import UrlCardActions from '../urlCardActions/UrlCardActions';
6
7
import { MouseEvent, Suspense } from 'react';
7
8
import UrlCardContent from '../urlCardContent/UrlCardContent';
···
110
111
onAuxClick={handleAuxClick}
111
112
>
112
113
<Stack justify="space-between" flex={1}>
114
114
+
{props.isPinnedInCollection && (
115
115
+
<Group gap={5} c="dimmed">
116
116
+
<BsPinFill size={12} />
117
117
+
<Text fz="xs" fw={500}>
118
118
+
Pinned
119
119
+
</Text>
120
120
+
</Group>
121
121
+
)}
113
122
<Suspense fallback={<UrlCardContentSkeleton />}>
114
123
<UrlCardContent
115
124
url={props.url}
···
18
18
import { Fragment, useState } from 'react';
19
19
import { FiPlus } from 'react-icons/fi';
20
20
import {
21
21
-
BsPinAngle,
22
22
-
BsPinAngleFill,
21
21
+
BsPin,
22
22
+
BsPinFill,
23
23
BsThreeDots,
24
24
BsTrash2Fill,
25
25
} from 'react-icons/bs';
···
244
244
<Menu.Item
245
245
leftSection={
246
246
props.isPinnedInCollection ? (
247
247
-
<BsPinAngleFill />
247
247
+
<BsPinFill />
248
248
) : (
249
249
-
<BsPinAngle />
249
249
+
<BsPin />
250
250
)
251
251
}
252
252
onClick={(e) => {