The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update submit button
Tim Wilson985ddf1c3aad
diff --git a/apps/web/ui/modals/add-edit-link-modal-new/index.tsx b/apps/web/ui/modals/add-edit-link-modal-new/index.tsxindex da168f0d8c..5be8ea6b91 100644--- a/apps/web/ui/modals/add-edit-link-modal-new/index.tsx+++ b/apps/web/ui/modals/add-edit-link-modal-new/index.tsx@@ -17,6 +17,7 @@ import {useKeyboardShortcut,useRouterStuff,} from "@dub/ui";+import { ArrowTurnLeft } from "@dub/ui/src/icons";import {DEFAULT_LINK_PROPS,deepEqual,@@ -357,8 +358,15 @@ export function AddEditLinkModal({<Buttondisabled={saveDisabled}loading={isSubmitting || isSubmitSuccessful}- text={props ? "Save changes" : "Create link"}- className="h-8 w-fit"+ text={+ <span className="flex items-center gap-2">+ {props ? "Save changes" : "Create link"}+ <div className="rounded border border-white/20 p-1">+ <ArrowTurnLeft className="size-3.5" />+ </div>+ </span>+ }+ className="h-8 w-fit pl-2.5 pr-1.5"/>)}</div>diff --git a/packages/ui/src/icons/nucleo/arrow-turn-left.tsx b/packages/ui/src/icons/nucleo/arrow-turn-left.tsxnew file mode 100644index 0000000000..0cde872490--- /dev/null+++ b/packages/ui/src/icons/nucleo/arrow-turn-left.tsx@@ -0,0 +1,32 @@+import { SVGProps } from "react";++export function ArrowTurnLeft(props: SVGProps<SVGSVGElement>) {+ return (+ <svg+ height="18"+ width="18"+ viewBox="0 0 18 18"+ xmlns="http://www.w3.org/2000/svg"+ {...props}+ >+ <g fill="currentColor">+ <path+ d="M2.75,9.75H13.25c1.105,0,2-.895,2-2V3.75"+ fill="none"+ stroke="currentColor"+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth="1.5"+ />+ <polyline+ fill="none"+ points="7 5.5 2.75 9.75 7 14"+ stroke="currentColor"+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth="1.5"+ />+ </g>+ </svg>+ );+}diff --git a/packages/ui/src/icons/nucleo/index.ts b/packages/ui/src/icons/nucleo/index.tsindex a41482986c..913dc3eb1d 100644--- a/packages/ui/src/icons/nucleo/index.ts+++ b/packages/ui/src/icons/nucleo/index.ts@@ -1,5 +1,6 @@export * from "./apple";export * from "./arrow-right";+export * from "./arrow-turn-left";export * from "./arrow-turn-right2";export * from "./arrows-opposite-direction-y";export * from "./blog";