Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 4844 Rev 4850
Línea 47... Línea 47...
47
                <nav className={`nav__options-dropdown ${isMobile && 'mobile'} ${displayMenu && 'show'}`}>
47
                <nav className={`nav__options-dropdown ${isMobile && 'mobile'} ${displayMenu && 'show'}`}>
48
                    <ul>{childs.map((linkOption, index) =>
48
                    <ul>{childs.map((linkOption, index) =>
49
                        <li key={index}>
49
                        <li key={index}>
50
                            {linkOption.childs?.length
50
                            {linkOption.childs?.length
51
                                ? <a href='/' onClick={(e) => e.preventDefault()}>{linkOption.label}</a>
51
                                ? <a href='/' onClick={(e) => e.preventDefault()}>{linkOption.label}</a>
52
                                : <a href={linkOption.href} target='framename'>{linkOption.label}</a>
52
                                : <a href={`/${linkOption.href}`} target='framename'>{linkOption.label}</a>
53
                            }
53
                            }
54
                            {!!linkOption.childs?.length &&
54
                            {!!linkOption.childs?.length &&
55
                                <nav className='navLinkLevelThree'>
55
                                <nav className='navLinkLevelThree'>
56
                                    <ul>
56
                                    <ul>
57
                                        {linkOption.childs?.map((optionsChild, index) =>
57
                                        {linkOption.childs?.map((optionsChild, index) =>
58
                                            <li key={index}>
58
                                            <li key={index}>
59
                                                <a href={optionsChild.href} target='framename'>{optionsChild.label}</a>
59
                                                <a href={`/${optionsChild.href}`} target='framename'>{optionsChild.label}</a>
60
                                            </li>
60
                                            </li>
61
                                        )}
61
                                        )}
62
                                    </ul>
62
                                    </ul>
63
                                </nav>
63
                                </nav>
64
                            }
64
                            }