Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 4959 | Rev 5008 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 4959 Rev 4960
Línea 60... Línea 60...
60
                    </AccordionSummary>
60
                    </AccordionSummary>
61
                    <AccordionDetails sx={{ padding: 0 }}>
61
                    <AccordionDetails sx={{ padding: 0 }}>
62
                        {childs.map((child, index) => {
62
                        {childs.map((child, index) => {
63
                            if (child.childs?.length) {
63
                            if (child.childs?.length) {
64
                                return (
64
                                return (
65
                                    <Accordion key={index} sx={{ border: 'none', width: '100%', boxShadow: 'none' }}>
65
                                    <Accordion key={index} sx={{ border: 'none', width: '100%', boxShadow: 'none', background: 'lightgray' }}>
66
                                        <AccordionSummary
66
                                        <AccordionSummary
67
                                            expandIcon={<ExpandMoreIcon />}
67
                                            expandIcon={<ExpandMoreIcon />}
68
                                            sx={{ minHeight: 'auto !important', margin: '0', background: 'lightgray' }}
68
                                            sx={{ minHeight: 'auto !important', margin: '0' }}
69
                                        >
69
                                        >
70
                                            <AccountTreeRoundedIcon />
70
                                            <AccountTreeRoundedIcon />
71
                                            <Typography margin='0'>{child.label}</Typography>
71
                                            <Typography margin='0'>{child.label}</Typography>
72
                                        </AccordionSummary>
72
                                        </AccordionSummary>
73
                                        <AccordionDetails sx={{ padding: '0 16px', background: 'lightgray' }}>
73
                                        <AccordionDetails sx={{ padding: '0 16px' }}>
74
                                            {child.childs.map((levelThree, index) => {
74
                                            {child.childs.map((levelThree, index) => {
75
                                                return (
75
                                                return (
76
                                                    <Link key={index} href={`/${levelThree.href}`}>
76
                                                    <Link key={index} href={`/${levelThree.href}`}>
77
                                                        <ListItemText primary={levelThree.label} />
77
                                                        <ListItemText primary={levelThree.label} />
78
                                                    </Link>
78
                                                    </Link>