upd: button unduh dokumen divisi

This commit is contained in:
amel
2025-01-28 12:42:27 +08:00
parent ba5276f285
commit f54b1cb25b

View File

@@ -345,24 +345,25 @@ export default function NavbarDocumentDivision() {
> >
<Flex justify={"center"} align={"center"} h={"100%"} w={"100%"}> <Flex justify={"center"} align={"center"} h={"100%"} w={"100%"}>
<SimpleGrid cols={{ base: 5, sm: 5, lg: 5 }} spacing="xs"> <SimpleGrid cols={{ base: 5, sm: 5, lg: 5 }} spacing="xs">
<Flex <Flex justify={"center"} align={"center"} direction={"column"} >
justify={"center"} <ActionIcon
align={"center"} variant="subtle"
direction={"column"} aria-label="delete"
onClick={() => { onClick={() => {
if (selectedFiles.length > 0 && copyAllowed) { if (selectedFiles.length > 0 && copyAllowed) {
onDownload("selected"); onDownload("selected");
} }
}} }}
> >
<BsDownload <BsDownload
size={20} size={20}
color={ color={
selectedFiles.length > 0 && copyAllowed selectedFiles.length > 0 && copyAllowed
? "white" ? "white"
: "#656060" : "#656060"
} }
/> />
</ActionIcon>
<Text <Text
fz={12} fz={12}
ta={"center"} ta={"center"}