fix: fixing super admin

Deskripsi:
- tugas divisi
- kegiatan
- home
- filter

No Issues
This commit is contained in:
amel
2024-10-28 16:56:30 +08:00
parent 163e84c833
commit 16e62c7c09
22 changed files with 560 additions and 263 deletions

View File

@@ -1,17 +1,15 @@
'use client'
import { TEMA, WARNA } from "@/module/_global";
import { TEMA } from "@/module/_global";
import { useHookstate } from "@hookstate/core";
import { Carousel } from "@mantine/carousel";
import { Box, Card, Flex, Title, Text, Progress, Stack, Skeleton, ActionIcon } from "@mantine/core";
import { Box, Card, Flex, Progress, Skeleton, Stack, Text, Title } from "@mantine/core";
import { useMediaQuery, useShallowEffect } from "@mantine/hooks";
import _ from "lodash";
import { useRouter } from "next/navigation";
import { useState } from "react";
import toast from "react-hot-toast";
import { funGetHome } from "../lib/api_home";
import { IDataHomeKegiatan } from "../lib/type_home";
import _ from "lodash";
import { useHookstate } from "@hookstate/core";
import { MdMoreVert } from "react-icons/md";
import { IoIosArrowDropright } from "react-icons/io";
export default function ListProjects() {
const router = useRouter()
@@ -24,7 +22,6 @@ export default function ListProjects() {
setData([]);
setLoading(true);
const response = await funGetHome('?cat=kegiatan')
if (response.success) {
setData(response.data)
} else {
@@ -78,8 +75,8 @@ export default function ListProjects() {
</Card.Section>
<Stack h={isMobile ? 100 : 150} align="stretch" justify="center">
<Progress.Root size="xl" radius="xl" style={{ border: `1px solid ${'#BDBDBD'}` }}>
<Progress.Section value={v.progress} color="yellow" striped >
<Progress.Label>{v.progress}%</Progress.Label>
<Progress.Section value={_.isNull(v.progress) ? 0 : v.progress} color="yellow" striped >
<Progress.Label>{_.isNull(v.progress) ? 0 : v.progress}%</Progress.Label>
</Progress.Section>
</Progress.Root>
<Text c={tema.get().utama} fz={isMobile ? 14 : 16}>{v.createdAt}</Text>

View File

@@ -1,16 +1,14 @@
"use client"
import { ReloadButtonTop } from '@/module/_global';
import { Box, Stack } from '@mantine/core';
import React from 'react';
import Carosole from './carosole';
import Features from './features';
import ListProjects from './list_project';
import ListDivisi from './list_divisi';
import ListDiscussion from './list_discussion';
import ListEventHome from './list_event';
import ChartProgressHome from './chart_progress_tugas';
import ChartDocumentHome from './chart_document';
import ChartProgressHome from './chart_progress_tugas';
import Features from './features';
import HeaderHome from './header_home';
import ListDiscussion from './list_discussion';
import ListDivisi from './list_divisi';
import ListEventHome from './list_event';
import ListProjects from './list_project';
export default function ViewHome() {