diff --git a/src/module/_global/layout/layout_modal_view_file.tsx b/src/module/_global/layout/layout_modal_view_file.tsx index 584da23..0462b15 100644 --- a/src/module/_global/layout/layout_modal_view_file.tsx +++ b/src/module/_global/layout/layout_modal_view_file.tsx @@ -27,6 +27,7 @@ export default function LayoutModal({ opened, onClose, extension, fitur, file }: }} fit="contain" src={`/api/file/img?cat=${fitur}&file=${file}&jenis=file`} + alt={file} /> } diff --git a/src/module/calender/ui/detail_event_division.tsx b/src/module/calender/ui/detail_event_division.tsx index 00fcabd..017df26 100644 --- a/src/module/calender/ui/detail_event_division.tsx +++ b/src/module/calender/ui/detail_event_division.tsx @@ -176,7 +176,7 @@ export default function DetailEventDivision() { xl: 11 }}> {isDataCalender?.desc ? ( - + {isDataCalender?.desc} ) : ( diff --git a/src/module/group/ui/list_group_active.tsx b/src/module/group/ui/list_group_active.tsx index 89e1d13..e8659e1 100644 --- a/src/module/group/ui/list_group_active.tsx +++ b/src/module/group/ui/list_group_active.tsx @@ -2,6 +2,8 @@ import { LayoutDrawer, SkeletonSingle, WARNA } from "@/module/_global"; import { ActionIcon, Box, + Flex, + Grid, Group, Skeleton, Text, @@ -85,7 +87,7 @@ export default function ListGroupActive() { _.isEmpty(isData) ? - Tidak ada grup + Tidak ada grup : isData.map((v, i) => { @@ -106,25 +108,42 @@ export default function ListGroupActive() { setActive(v.isActive); }} > - - - - - - - + + + + + + + + + + + {v.name} - + + + ); @@ -133,7 +152,7 @@ export default function ListGroupActive() { setOpenDrawer(false)} - title={valChoose} + title={{valChoose}} > - {v.title} + + {v.title} + - {v.description} + + {v.description} + ) diff --git a/src/module/home/ui/view_search.tsx b/src/module/home/ui/view_search.tsx index 1b0025b..13e62d9 100644 --- a/src/module/home/ui/view_search.tsx +++ b/src/module/home/ui/view_search.tsx @@ -7,6 +7,7 @@ import { funGetSearchAll } from '../lib/api_search'; import { useShallowEffect } from '@mantine/hooks'; import { IDataDivisionSearch, IDataProjectSearch, IDataUserSearch } from '../lib/type_search'; import { useRouter } from 'next/navigation'; +import _ from 'lodash'; export default function ViewSearch() { const [search, setSearch] = useState(''); @@ -73,21 +74,27 @@ export default function ViewSearch() { borderRadius: 5 }}> {dataUser.length > 0 ? ( - + {dataUser.map((v, i) => { return ( - router.push(`/member/${v.id}`)}> - - - - {v.name} - {v.group + ' - ' + v.position} - - - + + { + router.push(`/member/${v.id}`) + }}> + + + + + + {_.startCase(v.name)} + {v.group + ' - ' + v.position} + + + + ) })} @@ -112,18 +119,25 @@ export default function ViewSearch() { {dataDivision.map((v, i) => { return ( router.push(`/division/${v.id}`)}> - - + + - {v.name.toUpperCase()} - {v.group} + + {v.name.toUpperCase()} + + {v.group} - {v.desc} + {v.desc} ) @@ -150,14 +164,21 @@ export default function ViewSearch() { return ( router.push(`/project/${v.id}`)}> - + - {v.title.toUpperCase()} - {v.group} + + {v.title.toUpperCase()} + + {v.group} diff --git a/src/module/position/ui/drawer_detail_position.tsx b/src/module/position/ui/drawer_detail_position.tsx index e22376f..d533d06 100644 --- a/src/module/position/ui/drawer_detail_position.tsx +++ b/src/module/position/ui/drawer_detail_position.tsx @@ -150,8 +150,8 @@ export default function DrawerDetailPosition({ onUpdated, id, isActive }: { - setOpenDrawerGroup(false)} title={'Edit Jabatan'} size="lg"> - + setOpenDrawerGroup(false)} title={'Edit Jabatan'} > + {loading ? @@ -159,40 +159,6 @@ export default function DrawerDetailPosition({ onUpdated, id, isActive }: { : - {/*