Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

✨ Added Save Icon

Max Programming65e5755145c6
diff --git a/components/app/modals/add-edit-link-modal/index.tsx b/components/app/modals/add-edit-link-modal/index.tsx
index 6cf5531531..84afa89c8c 100644
--- a/components/app/modals/add-edit-link-modal/index.tsx
+++ b/components/app/modals/add-edit-link-modal/index.tsx
@@ -9,12 +9,15 @@ import {
} from "react";
import { mutate } from "swr";
import { useDebounce } from "use-debounce";
+import MenuIcon from "@/components/layout/app/menu-icon";
import BlurImage from "@/components/shared/blur-image";
import {
AlertCircleFill,
LoadingCircle,
LoadingDots,
+ PlusCircle,
Random,
+ Save,
X,
} from "@/components/shared/icons";
import Modal from "@/components/shared/modal";
@@ -298,7 +301,10 @@ function AddEditLinkModal({
{saving ? (
<LoadingDots color="#808080" />
) : (
- <p>{props ? "Save changes" : "Add link"}</p>
+ <MenuIcon
+ icon={props && <Save className="h-5 w-5" />}
+ text={props ? "Save changes" : "Add link"}
+ />
)}
</button>
</div>
diff --git a/components/shared/icons/index.tsx b/components/shared/icons/index.tsx
index 55c7afe6f7..5935ccce66 100644
--- a/components/shared/icons/index.tsx
+++ b/components/shared/icons/index.tsx
@@ -40,3 +40,4 @@ export { default as Edit } from "./edit";
export { default as Archive } from "./archive";
export { default as Delete } from "./delete";
export { default as Logout } from "./logout";
+export { default as Save } from "./save";
diff --git a/components/shared/icons/save.tsx b/components/shared/icons/save.tsx
new file mode 100644
index 0000000000..b164a7a632
--- /dev/null
+++ b/components/shared/icons/save.tsx
@@ -0,0 +1,21 @@
+export default function Save({ 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="M19 21H5a2 2 0 01-2-2V5a2 2 0 012-2h11l5 5v11a2 2 0 01-2 2z" />
+ <path d="M17 21v-8H7v8" />
+ <path d="M7 3v5h8" />
+ </svg>
+ );
+}