style : update style
Deskripsi: - update calender - update task No Issue
This commit is contained in:
@@ -41,13 +41,17 @@ export default function DrawerDetailEvent({ idCalendar }: { idCalendar: string }
|
|||||||
<Stack pt={10}>
|
<Stack pt={10}>
|
||||||
<SimpleGrid
|
<SimpleGrid
|
||||||
cols={{ base: 3, sm: 3, lg: 3 }}
|
cols={{ base: 3, sm: 3, lg: 3 }}
|
||||||
|
style={{
|
||||||
|
alignContent: 'flex-start',
|
||||||
|
alignItems: 'flex-start',
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<Flex onClick={() => setModal(true)} justify={'center'} align={'center'} direction={'column'} >
|
<Flex onClick={() => router.push(`/division/${param.id}/calender/${param.detail}/add-member`)} justify={'center'} align={'center'} direction={'column'} >
|
||||||
<Box>
|
<Box>
|
||||||
<MdDelete size={30} color={tema.get().utama} />
|
<FaUsers size={30} color={tema.get().utama} />
|
||||||
</Box>
|
</Box>
|
||||||
<Box>
|
<Box>
|
||||||
<Text ta={"center"} c={tema.get().utama}>Hapus Acara</Text>
|
<Text c={tema.get().utama} ta={"center"}>Tambah Anggota</Text>
|
||||||
</Box>
|
</Box>
|
||||||
</Flex>
|
</Flex>
|
||||||
<Flex onClick={() => router.push(`/division/${param.id}/calender/update/${idCalendar}`)} justify={'center'} align={'center'} direction={'column'} >
|
<Flex onClick={() => router.push(`/division/${param.id}/calender/update/${idCalendar}`)} justify={'center'} align={'center'} direction={'column'} >
|
||||||
@@ -58,12 +62,12 @@ export default function DrawerDetailEvent({ idCalendar }: { idCalendar: string }
|
|||||||
<Text c={tema.get().utama}>Edit Acara</Text>
|
<Text c={tema.get().utama}>Edit Acara</Text>
|
||||||
</Box>
|
</Box>
|
||||||
</Flex>
|
</Flex>
|
||||||
<Flex onClick={() => router.push(`/division/${param.id}/calender/${param.detail}/add-member`)} justify={'center'} align={'center'} direction={'column'} >
|
<Flex onClick={() => setModal(true)} justify={'center'} align={'center'} direction={'column'} >
|
||||||
<Box>
|
<Box>
|
||||||
<FaUsers size={30} color={tema.get().utama} />
|
<MdDelete size={30} color={tema.get().utama} />
|
||||||
</Box>
|
</Box>
|
||||||
<Box>
|
<Box>
|
||||||
<Text c={tema.get().utama} ta={"center"}>Tambah Anggota</Text>
|
<Text ta={"center"} c={tema.get().utama}>Hapus Acara</Text>
|
||||||
</Box>
|
</Box>
|
||||||
</Flex>
|
</Flex>
|
||||||
</SimpleGrid>
|
</SimpleGrid>
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import React, { useState } from 'react';
|
|||||||
import { HiMagnifyingGlass } from 'react-icons/hi2';
|
import { HiMagnifyingGlass } from 'react-icons/hi2';
|
||||||
import { IDataCalender, IHistoryCalender } from '../lib/type_calender';
|
import { IDataCalender, IHistoryCalender } from '../lib/type_calender';
|
||||||
import { funGetAllCalender, funGetHostory } from '../lib/api_calender';
|
import { funGetAllCalender, funGetHostory } from '../lib/api_calender';
|
||||||
import { useShallowEffect } from '@mantine/hooks';
|
import { useMediaQuery, useShallowEffect } from '@mantine/hooks';
|
||||||
import moment from 'moment';
|
import moment from 'moment';
|
||||||
import "moment/locale/id";
|
import "moment/locale/id";
|
||||||
import _ from 'lodash';
|
import _ from 'lodash';
|
||||||
@@ -33,10 +33,12 @@ export default function HistoryDivisionCalender() {
|
|||||||
setLoading(false)
|
setLoading(false)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
useShallowEffect(() => {
|
useShallowEffect(() => {
|
||||||
getData()
|
getData()
|
||||||
}, [searchQuery])
|
}, [searchQuery])
|
||||||
|
|
||||||
|
const isMobile = useMediaQuery('(max-width: 450px)');
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Box>
|
<Box>
|
||||||
<LayoutNavbarNew back={`/division/${param.id}/calender/`} title="Riwayat acara" menu />
|
<LayoutNavbarNew back={`/division/${param.id}/calender/`} title="Riwayat acara" menu />
|
||||||
@@ -93,14 +95,33 @@ export default function HistoryDivisionCalender() {
|
|||||||
:
|
:
|
||||||
isData.map((v, i) => {
|
isData.map((v, i) => {
|
||||||
return (
|
return (
|
||||||
<Grid key={i} align='center'>
|
<Grid key={i}
|
||||||
<Grid.Col span={3}>
|
style={{
|
||||||
|
alignContent: 'flex-start',
|
||||||
|
alignItems: 'flex-start',
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<Grid.Col span={{
|
||||||
|
base: isMobile ? 4 : 3,
|
||||||
|
sm: 3,
|
||||||
|
xs:3,
|
||||||
|
md: 3,
|
||||||
|
lg: 3,
|
||||||
|
xl: 3
|
||||||
|
}}>
|
||||||
<Flex justify={"center"} direction={'column'}>
|
<Flex justify={"center"} direction={'column'}>
|
||||||
<Text ta={"center"} fz={20} fw={'bold'}>{moment(v.dateStart).format('D MMM')}</Text>
|
<Text ta={"center"} fz={20} fw={'bold'}>{moment(v.dateStart).format('D MMM')}</Text>
|
||||||
<Text ta={"center"} fz={15}>{moment(v.dateStart).format('dddd')}</Text>
|
<Text ta={"center"} fz={15}>{moment(v.dateStart).format('dddd')}</Text>
|
||||||
</Flex>
|
</Flex>
|
||||||
</Grid.Col>
|
</Grid.Col>
|
||||||
<Grid.Col span={9}>
|
<Grid.Col span={{
|
||||||
|
base: isMobile ? 8 : 9,
|
||||||
|
md: 9,
|
||||||
|
lg: 9,
|
||||||
|
xl: 9,
|
||||||
|
sm: 9,
|
||||||
|
xs:9
|
||||||
|
}}>
|
||||||
{v.data.map((d, x) => {
|
{v.data.map((d, x) => {
|
||||||
return (
|
return (
|
||||||
<Box mb={9} key={x}
|
<Box mb={9} key={x}
|
||||||
|
|||||||
@@ -175,9 +175,15 @@ export default function ListTugasDetailTask() {
|
|||||||
<Box>
|
<Box>
|
||||||
<Stack pt={10}>
|
<Stack pt={10}>
|
||||||
<SimpleGrid
|
<SimpleGrid
|
||||||
cols={{ base: 3, sm: 3, lg: 3 }}
|
cols={{ base: 2, sm: 3, lg: 3 }}
|
||||||
|
style={{
|
||||||
|
alignContent: 'flex-start',
|
||||||
|
alignItems: 'flex-start',
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<Flex onClick={() => { setOpenDrawerStatus(true) }} justify={'center'} align={'center'} direction={'column'} >
|
<Flex onClick={() => { setOpenDrawerStatus(true) }} justify={'center'} align={'center'} direction={'column'}
|
||||||
|
pb={20}
|
||||||
|
>
|
||||||
<Box>
|
<Box>
|
||||||
<AiOutlineFileDone size={30} color={tema.get().utama} />
|
<AiOutlineFileDone size={30} color={tema.get().utama} />
|
||||||
</Box>
|
</Box>
|
||||||
|
|||||||
@@ -63,6 +63,10 @@ export default function NavbarDetailDivisionTask() {
|
|||||||
<Stack pt={10}>
|
<Stack pt={10}>
|
||||||
<SimpleGrid
|
<SimpleGrid
|
||||||
cols={{ base: 3, sm: 3, lg: 3 }}
|
cols={{ base: 3, sm: 3, lg: 3 }}
|
||||||
|
style={{
|
||||||
|
alignContent: 'flex-start',
|
||||||
|
alignItems: 'flex-start',
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<Flex justify={'center'} align={'center'} direction={'column'}
|
<Flex justify={'center'} align={'center'} direction={'column'}
|
||||||
style={{
|
style={{
|
||||||
@@ -71,6 +75,7 @@ export default function NavbarDetailDivisionTask() {
|
|||||||
onClick={() => {
|
onClick={() => {
|
||||||
router.push(param.detail + '/add-task')
|
router.push(param.detail + '/add-task')
|
||||||
}}
|
}}
|
||||||
|
pb={20}
|
||||||
>
|
>
|
||||||
<Box>
|
<Box>
|
||||||
<IoAddCircle size={30} color={tema.get().utama} />
|
<IoAddCircle size={30} color={tema.get().utama} />
|
||||||
|
|||||||
Reference in New Issue
Block a user