The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Merge branch 'main' into icons
Usman Sabuwala (Max Programming)cd4b09729088
diff --cc components/app/links/link-card.tsxindex fcc9c093ae,248cf43b84..d484af0eda--- a/components/app/links/link-card.tsx+++ b/components/app/links/link-card.tsx@@@ -175,9 -166,9 +175,9 @@@ export default function LinkCard({ propsetOpenPopover(false);setShowAddEditLinkModal(true);}}- className="w-full font-medium text-sm text-gray-500 p-2 text-left rounded-md hover:bg-gray-100 transition-all duration-75"+ className="w-full rounded-md p-2 text-left text-sm font-medium text-gray-500 transition-all duration-75 hover:bg-gray-100">- Edit+ <MenuIcon text="Edit" icon={<Edit className="h-4 w-4" />} /></button>)}<button@@@ -185,24 -176,18 +185,24 @@@setOpenPopover(false);setShowArchiveLinkModal(true);}}- className="w-full font-medium text-sm text-gray-500 p-2 text-left rounded-md hover:bg-gray-100 transition-all duration-75"+ className="w-full rounded-md p-2 text-left text-sm font-medium text-gray-500 transition-all duration-75 hover:bg-gray-100">- Archive+ <MenuIcon+ text="Archive"+ icon={<Archive className="h-4 w-4" />}+ /></button><buttononClick={() => {setOpenPopover(false);setShowDeleteLinkModal(true);}}- 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"+ className="w-full rounded-md p-2 text-left text-sm font-medium text-red-600 transition-all duration-75 hover:bg-red-600 hover:text-white">- Delete+ <MenuIcon+ text="Delete"+ icon={<Delete className="h-4 w-4" />}+ /></button></div>}diff --cc components/app/links/link-filters/link-sort.tsxindex ca6083b76f,1d324d58c3..5168d06d39--- a/components/app/links/link-filters/link-sort.tsx+++ b/components/app/links/link-filters/link-sort.tsx@@@ -53,12 -52,12 +53,12 @@@ export default function LinkSort()query: finalQuery,});}}- className="flex items-center justify-between space-x-2 px-1 py-2 w-full rounded-md hover:bg-gray-100 active:bg-gray-200"+ className="flex w-full items-center justify-between space-x-2 rounded-md px-1 py-2 hover:bg-gray-100 active:bg-gray-200">- <div className="flex items-center justify-start space-x-2">- <SortDesc className="h-4 w-4" />- <p className="text-sm text-gray-700">{display}</p>- </div>+ <MenuIcon+ text={display}+ icon={<SortDesc className="w-4 h-4" />}+ />{selectedSort.slug === slug && (<Tick className="h-4 w-4" aria-hidden="true" />)}@@@ -71,12 -70,15 +71,12 @@@><buttononClick={() => setOpenPopover(!openPopover)}- className="flex justify-between items-center space-x-2 bg-white w-full sm:w-48 px-3 py-2.5 rounded-md shadow hover:shadow-md active:scale-95 transition-all duration-75"+ className="flex w-full items-center justify-between space-x-2 rounded-md bg-white px-3 py-2.5 shadow transition-all duration-75 hover:shadow-md active:scale-95 sm:w-48">- <div className="flex items-center space-x-2 text-gray-700">- <Sort className="h-4 w-4 shrink-0" />- <p className="text-sm">Sort by</p>- </div>+ <MenuIcon text="Sort by" icon={<Sort className="h-4 w-4 shrink-0" />} /><ChevronDown- className={`w-5 h-5 text-gray-400 ${- openPopover ? "transform rotate-180" : ""+ className={`h-5 w-5 text-gray-400 ${+ openPopover ? "rotate-180 transform" : ""} transition-all duration-75`}/></button>diff --cc components/app/links/link-filters/status-filter.tsxindex 6a85bbf2de,80bd9404a9..48f9dc8a4b--- a/components/app/links/link-filters/status-filter.tsx+++ b/components/app/links/link-filters/status-filter.tsx@@@ -84,12 -83,12 +84,12 @@@ export default function StatusFilter()query: finalQuery,});}}- className="flex items-center justify-between p-2 w-full rounded-md hover:bg-gray-100 active:bg-gray-200"+ className="flex w-full items-center justify-between rounded-md p-2 hover:bg-gray-100 active:bg-gray-200">- <div className="flex items-center justify-start space-x-2">- <div className={`h-2 w-2 rounded-full ${color}`} />- <p className="text-sm text-gray-700">{display}</p>- </div>+ <MenuIcon+ text={display}+ icon={<div className={`rounded-full w-2 h-2 ${color}`} />}+ />{(status === "all" ||(selectedStatus.includes(slug) && status !== "none")) && (<Tick className="h-4 w-4" aria-hidden="true" />diff --cc components/layout/app/user-dropdown.tsxindex e9d2ee2e90,56a9593c9c..615b5e4759--- a/components/layout/app/user-dropdown.tsx+++ b/components/layout/app/user-dropdown.tsx@@@ -12,12 -10,12 +12,12 @@@ export default function UserDropdown()<div className="relative inline-block text-left"><Popovercontent={- <div className="p-1 w-full sm:w-56 rounded-md bg-white">+ <div className="w-full rounded-md bg-white p-1 sm:w-56"><button- className="relative p-2 rounded-md w-full hover:bg-gray-100 transition-all duration-75 text-sm text-left"+ className="relative w-full rounded-md p-2 text-left text-sm transition-all duration-75 hover:bg-gray-100"onClick={() => signOut()}>- Logout+ <MenuIcon text="Logout" icon={<Logout className="h-4 w-4" />} /></button></div>}