From aeccdcffe92b7b195f8368f7b777ba7bdf39bf1f Mon Sep 17 00:00:00 2001 From: hanif salafi Date: Tue, 14 Apr 2026 13:39:30 +0700 Subject: [PATCH] feat: update icon my content --- components/main/my-content.tsx | 52 ++++++++++++++++++++++++++++------ 1 file changed, 44 insertions(+), 8 deletions(-) diff --git a/components/main/my-content.tsx b/components/main/my-content.tsx index 0debb77..05d41de 100644 --- a/components/main/my-content.tsx +++ b/components/main/my-content.tsx @@ -4,7 +4,17 @@ import { Card, CardContent } from "@/components/ui/card"; import { Input } from "@/components/ui/input"; import { Button } from "@/components/ui/button"; import { Badge } from "@/components/ui/badge"; -import { Search, Filter, ChevronLeft, ChevronRight } from "lucide-react"; +import { + Search, + Filter, + ChevronLeft, + ChevronRight, + FileText, + FilePenLine, + Clock3, + CheckCircle2, + XCircle, +} from "lucide-react"; import Link from "next/link"; import { useCallback, useEffect, useMemo, useState } from "react"; import Cookies from "js-cookie"; @@ -268,28 +278,54 @@ export default function MyContent() {
{[ - { title: "Total Content", value: stats.total, color: "bg-blue-500" }, - { title: "Drafts", value: stats.draft, color: "bg-slate-600" }, - { title: "Pending", value: stats.pending, color: "bg-yellow-500" }, - { title: "Approved", value: stats.approved, color: "bg-green-600" }, + { + title: "Total Content", + value: stats.total, + color: "bg-blue-500", + icon: FileText, + }, + { + title: "Drafts", + value: stats.draft, + color: "bg-slate-600", + icon: FilePenLine, + }, + { + title: "Pending", + value: stats.pending, + color: "bg-yellow-500", + icon: Clock3, + }, + { + title: "Approved", + value: stats.approved, + color: "bg-green-600", + icon: CheckCircle2, + }, { title: "Revision/Rejected", value: stats.rejected, color: "bg-red-600", + icon: XCircle, }, - ].map((item) => ( + ].map((item) => { + const Icon = item.icon; + return (
+ > + +

{item.value}

{item.title}

- ))} + ); + })}