Skip to content

Commit 2e8435d

Browse files
committed
Updated icons for the account side menu
1 parent a04395f commit 2e8435d

4 files changed

Lines changed: 58 additions & 10 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
export function PadlockIcon({ 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+
<rect x="5" y="9" width="14" height="12" rx="2" stroke="currentColor" strokeWidth="2" />
12+
<rect x="11" y="13" width="2" height="5" rx="1" fill="currentColor" />
13+
<rect x="10" y="12" width="4" height="4" rx="2" fill="currentColor" />
14+
<path
15+
d="M16 8V7C16 4.79086 14.2091 3 12 3C9.79086 3 8 4.79086 8 7V8"
16+
stroke="currentColor"
17+
strokeWidth="2"
18+
/>
19+
</svg>
20+
);
21+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
export function ShieldIcon({ 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="M11.4199 3.2207C11.7981 3.1061 12.2019 3.1061 12.5801 3.2207L18.5801 5.03906C19.4233 5.29464 20 6.072 20 6.95312V11.4951C20 13.7676 18.8965 15.899 17.041 17.2109L12 20.7754L6.95898 17.2109C5.10346 15.899 4 13.7676 4 11.4951V6.95312C4 6.072 4.57669 5.29464 5.41992 5.03906L11.4199 3.2207Z"
13+
stroke="currentColor"
14+
strokeWidth="2"
15+
/>
16+
<path
17+
d="M9.03125 11L11.0312 13.0625L15.0312 9"
18+
stroke="currentColor"
19+
strokeWidth="2"
20+
strokeLinecap="round"
21+
strokeLinejoin="round"
22+
/>
23+
</svg>
24+
);
25+
}

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

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { LockClosedIcon, ShieldCheckIcon, UserCircleIcon } from "@heroicons/react/20/solid";
21
import { ArrowLeftIcon } from "@heroicons/react/24/solid";
32
import type { User } from "@trigger.dev/database";
43
import { cn } from "~/utils/cn";
@@ -13,6 +12,9 @@ import { LinkButton } from "../primitives/Buttons";
1312
import { HelpAndFeedback } from "./HelpAndFeedbackPopover";
1413
import { SideMenuHeader } from "./SideMenuHeader";
1514
import { SideMenuItem } from "./SideMenuItem";
15+
import { AvatarCircleIcon } from "~/assets/icons/AvatarCircleIcon";
16+
import { ShieldIcon } from "~/assets/icons/ShieldIcon";
17+
import { PadlockIcon } from "~/assets/icons/PadlockIcon";
1618

1719
export function AccountSideMenu({ user }: { user: User }) {
1820
return (
@@ -36,22 +38,22 @@ export function AccountSideMenu({ user }: { user: User }) {
3638
<SideMenuHeader title="Account" />
3739
<SideMenuItem
3840
name="Profile"
39-
icon={UserCircleIcon}
40-
activeIconColor="text-indigo-500"
41+
icon={AvatarCircleIcon}
42+
activeIconColor="text-text-bright"
4143
to={accountPath()}
4244
data-action="account"
4345
/>
4446
<SideMenuItem
4547
name="Personal Access Tokens"
46-
icon={ShieldCheckIcon}
47-
activeIconColor="text-emerald-500"
48+
icon={ShieldIcon}
49+
activeIconColor="text-text-bright"
4850
to={personalAccessTokensPath()}
4951
data-action="tokens"
5052
/>
5153
<SideMenuItem
5254
name="Security"
53-
icon={LockClosedIcon}
54-
activeIconColor="text-rose-500"
55+
icon={PadlockIcon}
56+
activeIconColor="text-text-bright"
5557
to={accountSecurityPath()}
5658
data-action="security"
5759
/>

apps/webapp/app/routes/account._index/route.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { conform, useForm } from "@conform-to/react";
22
import { parse } from "@conform-to/zod";
3-
import { EnvelopeIcon, UserCircleIcon } from "@heroicons/react/20/solid";
43
import { Form, type MetaFunction, useActionData } from "@remix-run/react";
54
import { type ActionFunction, json } from "@remix-run/server-runtime";
65
import { z } from "zod";
6+
import { AvatarCircleIcon } from "~/assets/icons/AvatarCircleIcon";
7+
import { EnvelopeIcon } from "~/assets/icons/EnvelopeIcon";
78
import { UserProfilePhoto } from "~/components/UserProfilePhoto";
89
import {
9-
MainCenteredContainer,
1010
MainHorizontallyCenteredContainer,
1111
PageBody,
1212
PageContainer,
@@ -160,7 +160,7 @@ export default function Page() {
160160
{...conform.input(name, { type: "text" })}
161161
placeholder="Your full name"
162162
defaultValue={user?.name ?? ""}
163-
icon={UserCircleIcon}
163+
icon={AvatarCircleIcon}
164164
/>
165165
<Hint>Your teammates will see this</Hint>
166166
<FormError id={name.errorId}>{name.error}</FormError>

0 commit comments

Comments
 (0)