--- orig/components/ContentContainer/AccordionContainer.jsx 2021-10-11 20:30:09.799665485 -0300 +++ sources-gen/components/ContentContainer/AccordionContainer.jsx 2021-10-11 15:49:17.793082410 -0300 @@ -6,43 +6,26 @@ import { useTranslation } from '../../hooks/useTranslation'; export const AccordionContainer = ({ title, children, className }) => { - const element = useRef(null); - const [isOpen, { toggleOnClick }] = useToggle(); - const height = element.current ? element.current.scrollHeight : '0'; const titleTranslation = useTranslation(title); return ( -
-
+
+
-
-
+ {children} -
+ ); }; export const AccordionContainerContent = styled.div` - max-height: ${({ isOpen, height }) => (isOpen ? height : '1')}px; overflow: hidden; background-color: ${colors.LG_WHITE}; transition: max-height 0.7s;