diff --git a/src/app/(admin)/admin/components/Icons.tsx b/src/app/(admin)/admin/components/Icons.tsx
new file mode 100644
index 00000000..30762305
--- /dev/null
+++ b/src/app/(admin)/admin/components/Icons.tsx
@@ -0,0 +1,43 @@
+export const DashboardIcon = () => {
+ return (
+
+ );
+};
diff --git a/src/app/(admin)/admin/components/Sidebar.tsx b/src/app/(admin)/admin/components/Sidebar.tsx
index 65ef5ab2..c098767a 100644
--- a/src/app/(admin)/admin/components/Sidebar.tsx
+++ b/src/app/(admin)/admin/components/Sidebar.tsx
@@ -2,9 +2,9 @@ import Link from "next/link";
import Image from "next/image";
import { Session } from "next-auth";
import { P } from "@/app/_components/global/Text";
-import { MdDashboard, MdOutlineDashboard } from "react-icons/md";
import { protectedRoutes } from "@/utils/protectedRoutes";
import { usePathname } from "next/navigation";
+import { DashboardIcon } from "./Icons";
type navbarParam = {
nav: boolean;
@@ -47,45 +47,7 @@ export function Sidebar({ nav, session }: navbarParam) {
href={"/admin"}
className="group flex items-center rounded-lg p-2 text-base font-normal text-primary-400 hover:bg-red-100 transition-all"
>
-
+
Dashboard
diff --git a/src/app/(admin)/admin/link/_components/Icons.tsx b/src/app/(admin)/admin/link/_components/Icons.tsx new file mode 100644 index 00000000..a5848294 --- /dev/null +++ b/src/app/(admin)/admin/link/_components/Icons.tsx @@ -0,0 +1,315 @@ +export const StatsIcon = () => { + return ( + + ); +}; + +export const DateIcon = () => { + return ( + + ); +}; + +export const UserIcon = () => { + return ( + + ); +}; + +export const CopyIcon = () => { + return ( + + ); +}; + +export const EditIcon = () => { + return ( + + ); +}; + +export const DeleteIcon = () => { + return ( + + ); +}; + +export const PlusIcon = () => { + return ( + + ); +}; diff --git a/src/app/(admin)/admin/link/_components/LinkFigure.tsx b/src/app/(admin)/admin/link/_components/LinkFigure.tsx index 102621d3..7d422311 100644 --- a/src/app/(admin)/admin/link/_components/LinkFigure.tsx +++ b/src/app/(admin)/admin/link/_components/LinkFigure.tsx @@ -8,6 +8,14 @@ import Modal from "./Modal"; import { useState } from "react"; import { toast } from "sonner"; import { deleteLink } from "../action"; +import { + CopyIcon, + DateIcon, + DeleteIcon, + EditIcon, + StatsIcon, + UserIcon, +} from "./Icons"; export default function LinkFigure({ link }: { link: LinkWithCountAndUser }) { const [isOpenModal, setIsOpenModal] = useState(false); @@ -48,149 +56,17 @@ export default function LinkFigure({ link }: { link: LinkWithCountAndUser }) {{link.target_url}
{link.count?.click_count}
- +{stringifyDate(link.created_at)}
- +{link.user.name}
@@ -201,60 +77,10 @@ export default function LinkFigure({ link }: { link: LinkWithCountAndUser }) {