themebuilder: fix accordion

This commit is contained in:
ammarahm-ed
2023-08-08 11:48:26 +05:00
committed by Abdullah Atta
parent 5d67a554d6
commit f1650fd383

View File

@@ -67,7 +67,14 @@ export default function Accordion(
<ChevronUp size={16} color={color} />
)}
</Flex>
{!isContentHidden && children}
<Flex
sx={{
display: isContentHidden ? "none" : "flex",
flexDirection: "column"
}}
>
{children}
</Flex>
</Flex>
);
}