diff --git a/src/module/project/components/ui/navbar_project.tsx b/src/module/project/components/ui/navbar_project.tsx
index 23c167a..2204008 100644
--- a/src/module/project/components/ui/navbar_project.tsx
+++ b/src/module/project/components/ui/navbar_project.tsx
@@ -1,191 +1,98 @@
"use client"
import { LayoutDrawer, LayoutNavbarNew, WARNA } from '@/module/_global';
-import { ActionIcon, Avatar, Badge, Box, Card, Center, Divider, Flex, Grid, Group, Text, TextInput, Title } from '@mantine/core';
-import React, { useState } from 'react';
+import { ActionIcon, Avatar, Badge, Box, Card, Center, Divider, Flex, Grid, Group, rem, Tabs, Text, TextInput, Title } from '@mantine/core';
+import React, { useEffect, useState } from 'react';
import { HiMenu } from 'react-icons/hi';
import { HiMagnifyingGlass, HiMiniPresentationChartBar, HiOutlineListBullet, HiSquares2X2 } from 'react-icons/hi2';
import { MdAccountCircle } from 'react-icons/md';
import { RiCircleFill } from "react-icons/ri";
import DrawerProject from './drawer_project';
import { useRouter } from 'next/navigation';
-
-const dataProject = [
- {
- id: 1,
- title: 'Project 1',
- description: 'Tempat berkumpul semua anggota / staff perbekal darmasaba',
- status: 'PROJECT SELESAI',
- color: '#387529'
- },
- {
- id: 2,
- title: 'Project 2',
- description: 'Tempat berkumpul semua anggota / staff perbekal darmasaba',
- status: 'PROJECT SELESAI',
- color: '#387529'
- },
- {
- id: 3,
- title: 'Project 3',
- description: 'Tempat berkumpul semua anggota / staff perbekal darmasaba',
- status: 'PROJECT SELESAI',
- color: '#387529'
- },
- {
- id: 4,
- title: 'Project 4',
- description: 'Tempat berkumpul semua anggota / staff perbekal darmasaba',
- status: 'PROSES',
- color: '#C5771A'
- },
- {
- id: 5,
- title: 'Project5',
- description: 'Tempat berkumpul semua anggota / staff perbekal darmasaba',
- status: 'PROSES',
- color: '#C5771A'
- },
- {
- id: 6,
- title: 'Project 6',
- description: 'Tempat berkumpul semua anggota / staff perbekal darmasaba',
- status: 'PROSES',
- color: '#C5771A'
- },
-]
+import { TbClockPause } from 'react-icons/tb';
+import { IoIosCheckmarkCircleOutline } from 'react-icons/io';
+import { IoCloseCircleOutline } from 'react-icons/io5';
+import ProjectProcess from '../project_process';
+import ProjectDone from '../project_done';
+import ProjectCencel from '../project_cencel';
export default function NavbarProject() {
- const [isList, setIsList] = useState(false)
const [openDrawer, setOpenDrawer] = useState(false)
- const router = useRouter()
- const handleList = () => {
- setIsList(!isList)
- }
+ const iconStyle = { width: rem(20), height: rem(20) };
+
+ const tabsData = [
+ {
+ value: 'segera',
+ label: 'Proyek Proses',
+ mobileLabel: 'Proses',
+ icon: ,
+ },
+ {
+ value: 'selesai',
+ label: 'Proyek Selesai',
+ mobileLabel: 'Selesai',
+ icon: ,
+ },
+ {
+ value: 'batal',
+ label: 'Proyek Batal',
+ mobileLabel: ' Batal',
+ icon: ,
+ },
+ ];
+ const [isMobile, setIsMobile] = useState(false);
+
+ useEffect(() => {
+ const handleResize = () => {
+ if (window.innerWidth < 495) {
+ setIsMobile(true);
+ } else {
+ setIsMobile(false);
+ }
+ };
+ window.addEventListener('resize', handleResize);
+ handleResize();
+ return () => {
+ window.removeEventListener('resize', handleResize);
+ };
+ }, []);
+
return (
setOpenDrawer(true)} bg={WARNA.bgIcon} size="lg" radius="lg" aria-label="Settings">
} />
+
-
-
- }
- placeholder="Pencarian"
- />
-
-
-
- {isList ? (
-
- ) : (
-
- )}
-
-
-
-
-
- Total Proyek
-
- 35
-
-
-
-
-
- Proyek Selesai
-
- 35
-
-
-
-
-
- Proyek Proses
-
- 35
-
-
-
-
- {isList ? (
-
- {dataProject.map((v, i) => {
- return (
-
- router.push(`/project/${v.id}`)}>
-
-
-
-
-
-
- {v.title}
-
-
-
-
-
-
-
- );
- })}
-
- ) : (
-
- {dataProject.map((v, i) => {
- return (
-
- router.push(`/project/${v.id}`)}>
-
-
-
- {v.title}
-
-
-
-
- {v.description}
-
- {v.status}
-
-
-
-
- +5
-
-
-
-
-
- );
- })}
-
- )}
-
-
+
+
+ {tabsData.map((tab) => (
+
+ {isMobile ? tab.mobileLabel : tab.label}
+
+ ))}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
setOpenDrawer(false)}>