Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

feat: add proper icon for hidden password

Marc Seitz5713b01f5b24
diff --git a/components/links/link-sheet/password-section.tsx b/components/links/link-sheet/password-section.tsx
index 33cf7811..ae660885 100644
--- a/components/links/link-sheet/password-section.tsx
+++ b/components/links/link-sheet/password-section.tsx
@@ -3,6 +3,7 @@ import { Switch } from "@/components/ui/switch";
import { motion } from "framer-motion";
import { FADE_IN_ANIMATION_SETTINGS } from "@/lib/contants";
import Eye from "@/components/shared/icons/eye"
+import EyeOff from "@/components/shared/icons/eye-off"
import { cn } from "@/lib/utils";
import { DEFAULT_LINK_TYPE } from ".";
@@ -63,7 +64,7 @@ export default function PasswordSection({data, setData}: {data: DEFAULT_LINK_TYP
{showPassword ? (
<Eye className="h-4 w-4 text-gray-400" aria-hidden="true" />
) : (
- <Eye className="h-4 w-4 text-gray-400" aria-hidden="true" />
+ <EyeOff className="h-4 w-4 text-gray-400" aria-hidden="true" />
)}
</button>
</motion.div>
diff --git a/components/shared/icons/eye-off.tsx b/components/shared/icons/eye-off.tsx
new file mode 100644
index 00000000..9916e1e8
--- /dev/null
+++ b/components/shared/icons/eye-off.tsx
@@ -0,0 +1,21 @@
+export default function EyeOff({ className }: { className?: string }) {
+ return (
+ <svg
+ width="14"
+ height="14"
+ viewBox="0 0 24 24"
+ fill="none"
+ stroke="currentColor"
+ strokeWidth="2"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ shapeRendering="geometricPrecision"
+ className={className}
+ >
+ <path d="M9.88 9.88a3 3 0 1 0 4.24 4.24" />
+ <path d="M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68" />
+ <path d="M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61" />
+ <line x1="2" x2="22" y1="2" y2="22" />
+ </svg>
+ );
+}
\ No newline at end of file