The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
💄 Added Icons to Menu Items
Max Programming829ba227dced
diff --git a/components/app/links/link-card.tsx b/components/app/links/link-card.tsxindex 4970f50cb9..58c43c8553 100644--- a/components/app/links/link-card.tsx+++ b/components/app/links/link-card.tsx@@ -8,7 +8,15 @@ import { useDeleteLinkModal } from "@/components/app/modals/delete-link-modal";import { useLinkQRModal } from "@/components/app/modals/link-qr-modal";import BlurImage from "@/components/shared/blur-image";import CopyButton from "@/components/shared/copy-button";-import { Chart, LoadingDots, QR, ThreeDots } from "@/components/shared/icons";+import {+ Archive,+ Chart,+ Delete,+ Edit,+ LoadingDots,+ QR,+ ThreeDots,+} from "@/components/shared/icons";import Popover from "@/components/shared/popover";import Tooltip, { TooltipContent } from "@/components/shared/tooltip";import useProject from "@/lib/swr/use-project";@@ -168,7 +176,10 @@ export default function LinkCard({ props }: { props: LinkProps }) {}}className="w-full font-medium text-sm text-gray-500 p-2 text-left rounded-md hover:bg-gray-100 transition-all duration-75">- Edit+ <div className="flex items-center justify-start space-x-2">+ <Edit className="w-4 h-4" />+ <p className="text-sm">Edit</p>+ </div></button>)}<button@@ -178,7 +189,10 @@ export default function LinkCard({ props }: { props: LinkProps }) {}}className="w-full font-medium text-sm text-gray-500 p-2 text-left rounded-md hover:bg-gray-100 transition-all duration-75">- Archive+ <div className="flex items-center justify-start space-x-2">+ <Archive className="w-4 h-4" />+ <p className="text-sm">Archive</p>+ </div></button><buttononClick={() => {@@ -187,7 +201,10 @@ export default function LinkCard({ props }: { props: LinkProps }) {}}className="w-full font-medium text-sm text-red-600 hover:bg-red-600 hover:text-white p-2 text-left rounded-md transition-all duration-75">- Delete+ <div className="flex items-center justify-start space-x-2">+ <Delete className="w-4 h-4" />+ <p className="text-sm">Delete</p>+ </div></button></div>}diff --git a/components/layout/app/user-dropdown.tsx b/components/layout/app/user-dropdown.tsxindex 4790bbb1b2..7b426612a1 100644--- a/components/layout/app/user-dropdown.tsx+++ b/components/layout/app/user-dropdown.tsx@@ -1,5 +1,6 @@import { useState } from "react";import { signOut, useSession } from "next-auth/react";+import { Logout } from "@/components/shared/icons";import Popover from "@/components/shared/popover";export default function UserDropdown() {@@ -15,7 +16,10 @@ export default function UserDropdown() {className="relative p-2 rounded-md w-full hover:bg-gray-100 transition-all duration-75 text-sm text-left"onClick={() => signOut()}>- Logout+ <div className="flex items-center justify-start space-x-2">+ <Logout className="w-4 h-4" />+ <p className="text-sm">Logout</p>+ </div></button></div>}diff --git a/components/shared/icons/archive.tsx b/components/shared/icons/archive.tsxnew file mode 100644index 0000000000..d5e8ea2b36--- /dev/null+++ b/components/shared/icons/archive.tsx@@ -0,0 +1,22 @@+export default function Archive({ className }: { className: string }) {+ return (+ <svg+ data-testid="geist-icon"+ fill="none"+ height="24"+ shape-rendering="geometricPrecision"+ stroke="currentColor"+ stroke-linecap="round"+ stroke-linejoin="round"+ stroke-width="1.5"+ viewBox="0 0 24 24"+ width="24"+ className={className}+ // style="color:var(--geist-foreground)"+ >+ <path d="M21 8v13H3V8" />+ <path d="M1 3h22v5H1z" />+ <path d="M10 12h4" />+ </svg>+ );+}diff --git a/components/shared/icons/delete.tsx b/components/shared/icons/delete.tsxnew file mode 100644index 0000000000..10db55845d--- /dev/null+++ b/components/shared/icons/delete.tsx@@ -0,0 +1,23 @@+export default function Delete({ className }: { className: string }) {+ return (+ <svg+ data-testid="geist-icon"+ fill="none"+ height="24"+ shape-rendering="geometricPrecision"+ stroke="currentColor"+ stroke-linecap="round"+ stroke-linejoin="round"+ stroke-width="1.5"+ viewBox="0 0 24 24"+ width="24"+ className={className}+ // style="color:var(--geist-foreground)"+ >+ <path d="M3 6h18" />+ <path d="M19 6v14a2 2 0 01-2 2H7a2 2 0 01-2-2V6m3 0V4a2 2 0 012-2h4a2 2 0 012 2v2" />+ <path d="M10 11v6" />+ <path d="M14 11v6" />+ </svg>+ );+}diff --git a/components/shared/icons/edit.tsx b/components/shared/icons/edit.tsxnew file mode 100644index 0000000000..22ccb1ea29--- /dev/null+++ b/components/shared/icons/edit.tsx@@ -0,0 +1,21 @@+export default function Edit({ className }: { className: string }) {+ return (+ <svg+ data-testid="geist-icon"+ fill="none"+ height="24"+ shape-rendering="geometricPrecision"+ stroke="currentColor"+ stroke-linecap="round"+ stroke-linejoin="round"+ stroke-width="1.5"+ viewBox="0 0 24 24"+ width="24"+ className={className}+ // style="color:var(--geist-foreground)"+ >+ <path d="M12 20h9" />+ <path d="M16.5 3.5a2.121 2.121 0 013 3L7 19l-4 1 1-4L16.5 3.5z" />+ </svg>+ );+}diff --git a/components/shared/icons/index.tsx b/components/shared/icons/index.tsxindex 6562751032..55c7afe6f7 100644--- a/components/shared/icons/index.tsx+++ b/components/shared/icons/index.tsx@@ -36,3 +36,7 @@ export { default as Filter } from "./filter";export { default as Search } from "./search";export { default as Sort } from "./sort";export { default as SortDesc } from "./sort-desc";+export { default as Edit } from "./edit";+export { default as Archive } from "./archive";+export { default as Delete } from "./delete";+export { default as Logout } from "./logout";diff --git a/components/shared/icons/logout.tsx b/components/shared/icons/logout.tsxnew file mode 100644index 0000000000..b185c76d42--- /dev/null+++ b/components/shared/icons/logout.tsx@@ -0,0 +1,21 @@+export default function Logout({ className }: { className: string }) {+ return (+ <svg+ data-testid="geist-icon"+ fill="none"+ height="24"+ shape-rendering="geometricPrecision"+ stroke="currentColor"+ stroke-linecap="round"+ stroke-linejoin="round"+ stroke-width="1.5"+ viewBox="0 0 24 24"+ width="24"+ className={className}+ >+ <path d="M9 21H5a2 2 0 01-2-2V5a2 2 0 012-2h4" />+ <path d="M16 17l5-5-5-5" />+ <path d="M21 12H9" />+ </svg>+ );+}