fix: division

This commit is contained in:
amel
2024-08-13 14:09:03 +08:00
parent 40a094a80a
commit eab2cba30d
3 changed files with 4 additions and 4 deletions

View File

@@ -97,7 +97,7 @@ export default function InformationDivision() {
return (
<Box>
<LayoutNavbarNew back={""} title={name}
<LayoutNavbarNew back={"/division/" + param.id} title={name}
menu={
<ActionIcon variant="light" onClick={() => {
router.push('/division/edit/' + param.id)

View File

@@ -19,8 +19,8 @@ export default function NavbarCreateUsers({ grup, onClose }: { grup?: string, on
const [dataMember, setDataMember] = useState<TypeUser>([])
const handleFileClick = (index: number) => {
if (selectedFiles.some((i: any) => i.id == dataMember[index].id)) {
setSelectedFiles(selectedFiles.filter((i: any) => i.id != dataMember[index].id))
if (selectedFiles.some((i: any) => i.idUser == dataMember[index].id)) {
setSelectedFiles(selectedFiles.filter((i: any) => i.idUser != dataMember[index].id))
} else {
setSelectedFiles([...selectedFiles, { idUser: dataMember[index].id, name: dataMember[index].name }])
}

View File

@@ -35,7 +35,7 @@ export default function NavbarDetailDivision() {
return (
<>
<LayoutNavbarNew back="" title={name} menu={
<LayoutNavbarNew back="/division" title={name} menu={
<ActionIcon variant="light" onClick={() => (setOpenDrawer(true))} bg={WARNA.bgIcon} size="lg" radius="lg" aria-label="Settings">
<HiMenu size={20} color='white' />
</ActionIcon>