style : update tema
Deskripsi: - update global - update announcement - update update color palette - update group - update home - update position - update project - update member No Issue
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { globalRole, WARNA } from '@/module/_global';
|
||||
import { globalRole, TEMA, WARNA } from '@/module/_global';
|
||||
import { useHookstate } from '@hookstate/core';
|
||||
import { Box, Flex, SimpleGrid, Stack, Text } from '@mantine/core';
|
||||
import { useSearchParams } from 'next/navigation';
|
||||
@@ -10,6 +10,7 @@ export default function MenuDrawerProject() {
|
||||
const roleLogin = useHookstate(globalRole)
|
||||
const searchParams = useSearchParams()
|
||||
const group = searchParams.get('group')
|
||||
const tema = useHookstate(TEMA)
|
||||
|
||||
return (
|
||||
<Box>
|
||||
@@ -19,20 +20,20 @@ export default function MenuDrawerProject() {
|
||||
>
|
||||
<Flex onClick={() => window.location.href = "/project/create"} justify={'center'} align={'center'} direction={'column'} >
|
||||
<Box>
|
||||
<IoAddCircle size={30} color={WARNA.biruTua} />
|
||||
<IoAddCircle size={30} color={tema.get().utama} />
|
||||
</Box>
|
||||
<Box>
|
||||
<Text c={WARNA.biruTua}>Tambah Kegiatan</Text>
|
||||
<Text c={tema.get().utama}>Tambah Kegiatan</Text>
|
||||
</Box>
|
||||
</Flex>
|
||||
{
|
||||
roleLogin.get() == "supadmin" &&
|
||||
<Flex onClick={() => window.location.href = "/project?page=filter&group=" + group} justify={'center'} align={'center'} direction={'column'} >
|
||||
<Box>
|
||||
<HiOutlineFilter size={30} color={WARNA.biruTua} />
|
||||
<HiOutlineFilter size={30} color={tema.get().utama} />
|
||||
</Box>
|
||||
<Box>
|
||||
<Text c={WARNA.biruTua}>Filter</Text>
|
||||
<Text c={tema.get().utama}>Filter</Text>
|
||||
</Box>
|
||||
</Flex>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user