style : update tema
Deskripsi: - update calender - update color palette - update discussion - update division - update task No Issue
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
"use client"
|
||||
import { WARNA } from '@/module/_global';
|
||||
import { TEMA } from '@/module/_global';
|
||||
import LayoutModal from '@/module/_global/layout/layout_modal';
|
||||
import { Box, Flex, SimpleGrid, Stack, Text } from '@mantine/core';
|
||||
import { useParams, useRouter } from 'next/navigation';
|
||||
@@ -8,11 +8,13 @@ import toast from 'react-hot-toast';
|
||||
import { MdDelete, MdEdit } from 'react-icons/md';
|
||||
import { funDeleteCalenderById } from '../lib/api_calender';
|
||||
import { FaUsers } from 'react-icons/fa6';
|
||||
import { useHookstate } from '@hookstate/core';
|
||||
|
||||
export default function DrawerDetailEvent({ idCalendar }: { idCalendar: string }) {
|
||||
const router = useRouter()
|
||||
const [isModal, setModal] = useState(false)
|
||||
const param = useParams<{ id: string, detail: string }>()
|
||||
const tema = useHookstate(TEMA)
|
||||
|
||||
async function fetchDeleteCalender(val: boolean) {
|
||||
try {
|
||||
@@ -42,26 +44,26 @@ export default function DrawerDetailEvent({ idCalendar }: { idCalendar: string }
|
||||
>
|
||||
<Flex onClick={() => setModal(true)} justify={'center'} align={'center'} direction={'column'} >
|
||||
<Box>
|
||||
<MdDelete size={30} color={WARNA.biruTua} />
|
||||
<MdDelete size={30} color={tema.get().utama} />
|
||||
</Box>
|
||||
<Box>
|
||||
<Text ta={"center"} c={WARNA.biruTua}>Hapus Acara</Text>
|
||||
<Text ta={"center"} c={tema.get().utama}>Hapus Acara</Text>
|
||||
</Box>
|
||||
</Flex>
|
||||
<Flex onClick={() => router.push(`/division/${param.id}/calender/update/${idCalendar}`)} justify={'center'} align={'center'} direction={'column'} >
|
||||
<Box>
|
||||
<MdEdit size={30} color={WARNA.biruTua} />
|
||||
<MdEdit size={30} color={tema.get().utama} />
|
||||
</Box>
|
||||
<Box>
|
||||
<Text c={WARNA.biruTua}>Edit Acara</Text>
|
||||
<Text c={tema.get().utama}>Edit Acara</Text>
|
||||
</Box>
|
||||
</Flex>
|
||||
<Flex onClick={() => router.push(`/division/${param.id}/calender/${param.detail}/add-member`)} justify={'center'} align={'center'} direction={'column'} >
|
||||
<Box>
|
||||
<FaUsers size={30} color={WARNA.biruTua} />
|
||||
<FaUsers size={30} color={tema.get().utama} />
|
||||
</Box>
|
||||
<Box>
|
||||
<Text c={WARNA.biruTua} ta={"center"}>Tambah Anggota</Text>
|
||||
<Text c={tema.get().utama} ta={"center"}>Tambah Anggota</Text>
|
||||
</Box>
|
||||
</Flex>
|
||||
</SimpleGrid>
|
||||
|
||||
Reference in New Issue
Block a user