Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
refactor: add new icons
Marc Seitz1e3f2c5d8202
diff --git a/components/shared/icons/moon.tsx b/components/shared/icons/moon.tsxnew file mode 100644index 00000000..96250ae9--- /dev/null+++ b/components/shared/icons/moon.tsx@@ -0,0 +1,18 @@+export default function Moon({ className }: { className?: string }) {+ return (+ <svg+ width="14"+ height="14"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ strokeWidth="2"+ strokeLinecap="round"+ strokeLinejoin="round"+ className={className}+ shapeRendering="geometricPrecision"+ >+ <path d="M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z" />+ </svg>+ );+}\ No newline at end of filediff --git a/components/shared/icons/sun.tsx b/components/shared/icons/sun.tsxnew file mode 100644index 00000000..c7f437f9--- /dev/null+++ b/components/shared/icons/sun.tsx@@ -0,0 +1,26 @@+export default function Sun({ className }: { className?: string }) {+ return (+ <svg+ width="14"+ height="14"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ strokeWidth="2"+ strokeLinecap="round"+ strokeLinejoin="round"+ className={className}+ shapeRendering="geometricPrecision"+ >+ <circle cx="12" cy="12" r="4" />+ <path d="M12 2v2" />+ <path d="M12 20v2" />+ <path d="m4.93 4.93 1.41 1.41" />+ <path d="m17.66 17.66 1.41 1.41" />+ <path d="M2 12h2" />+ <path d="M20 12h2" />+ <path d="m6.34 17.66-1.41 1.41" />+ <path d="m19.07 4.93-1.41 1.41" />+ </svg>+ );+}\ No newline at end of filediff --git a/components/theme-toggle.tsx b/components/theme-toggle.tsxindex 302d8e89..a0a85695 100644--- a/components/theme-toggle.tsx+++ b/components/theme-toggle.tsx@@ -1,7 +1,8 @@"use client";import * as React from "react";-import { Moon, Sun } from "lucide-react";+import Sun from "@/components/shared/icons/sun";+import Moon from "@/components/shared/icons/moon";import { useTheme } from "next-themes";import { Button } from "@/components/ui/button";