Skip to content

Commit 26aa1be

Browse files
committed
feat(webapp): use a custom chain link icon for private connections
Add a ChainLinkIcon and use it for the Private connections item in both the organization settings side menu and the organization dropdown, replacing the heroicons link icon.
1 parent 0b0f66d commit 26aa1be

3 files changed

Lines changed: 32 additions & 4 deletions

File tree

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
export function ChainLinkIcon({ className }: { className?: string }) {
2+
return (
3+
<svg
4+
className={className}
5+
width="24"
6+
height="24"
7+
viewBox="0 0 24 24"
8+
fill="none"
9+
xmlns="http://www.w3.org/2000/svg"
10+
>
11+
<path
12+
d="M10 19.0004L9.82843 19.1719C8.26634 20.734 5.73368 20.734 4.17158 19.1719L3.82843 18.8288C2.26634 17.2667 2.26633 14.734 3.82843 13.1719L7.17158 9.8288C8.73368 8.2667 11.2663 8.2667 12.8284 9.8288L13.1716 10.1719C13.8252 10.8256 14.2053 11.6491 14.312 12.5004"
13+
stroke="currentColor"
14+
strokeWidth="2"
15+
strokeLinecap="round"
16+
strokeLinejoin="round"
17+
/>
18+
<path
19+
d="M9.68799 12.5004C9.79463 13.3516 10.1748 14.1752 10.8284 14.8288L11.1715 15.1719C12.7336 16.734 15.2663 16.734 16.8284 15.1719L20.1715 11.8288C21.7336 10.2667 21.7336 7.73404 20.1715 6.17194L19.8284 5.8288C18.2663 4.2667 15.7336 4.2667 14.1715 5.8288L14 6.00037"
20+
stroke="currentColor"
21+
strokeWidth="2"
22+
strokeLinecap="round"
23+
strokeLinejoin="round"
24+
/>
25+
</svg>
26+
);
27+
}

apps/webapp/app/components/navigation/OrganizationSettingsSideMenu.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import { ArrowLeftIcon, LinkIcon } from "@heroicons/react/24/solid";
1+
import { ArrowLeftIcon } from "@heroicons/react/24/solid";
22
import { BellIcon } from "~/assets/icons/BellIcon";
3+
import { ChainLinkIcon } from "~/assets/icons/ChainLinkIcon";
34
import { CreditCardIcon } from "~/assets/icons/CreditCardIcon";
45
import { PadlockIcon } from "~/assets/icons/PadlockIcon";
56
import { UsageIcon } from "~/assets/icons/UsageIcon";
@@ -130,7 +131,7 @@ export function OrganizationSettingsSideMenu({
130131
{featureFlags.hasPrivateConnections && (
131132
<SideMenuItem
132133
name="Private Connections"
133-
icon={LinkIcon}
134+
icon={ChainLinkIcon}
134135
activeIconColor="text-text-bright"
135136
inactiveIconColor="text-text-dimmed"
136137
to={v3PrivateConnectionsPath(organization)}

apps/webapp/app/components/navigation/SideMenu.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import {
33
ChevronRightIcon,
44
ExclamationTriangleIcon,
55
} from "@heroicons/react/24/outline";
6-
import { LinkIcon } from "@heroicons/react/24/solid";
76
import { useFetcher, useNavigate, useNavigation, useSubmit } from "@remix-run/react";
87
import { LayoutGroup, motion } from "framer-motion";
98
import { type ReactNode, useCallback, useEffect, useRef, useState } from "react";
@@ -16,6 +15,7 @@ import { BatchesIcon } from "~/assets/icons/BatchesIcon";
1615
import { BellIcon } from "~/assets/icons/BellIcon";
1716
import { Box3DIcon } from "~/assets/icons/Box3DIcon";
1817
import { BugIcon } from "~/assets/icons/BugIcon";
18+
import { ChainLinkIcon } from "~/assets/icons/ChainLinkIcon";
1919
import { ChartBarIcon } from "~/assets/icons/ChartBarIcon";
2020
import { CodeSquareIcon } from "~/assets/icons/CodeSquareIcon";
2121
import { ConcurrencyIcon } from "~/assets/icons/ConcurrencyIcon";
@@ -934,7 +934,7 @@ function OrgSelector({
934934
<PopoverMenuItem
935935
to={v3PrivateConnectionsPath(organization)}
936936
title="Private connections"
937-
icon={LinkIcon}
937+
icon={ChainLinkIcon}
938938
leadingIconClassName={SIDE_MENU_POPOVER_ITEM_ICON}
939939
className={SIDE_MENU_POPOVER_ITEM_LABEL}
940940
/>

0 commit comments

Comments
 (0)