Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 6798 Rev 6840
Línea 1... Línea 1...
1
import React from 'react'
1
import React from 'react'
2
import { Link } from 'react-router-dom'
2
import { Link } from 'react-router-dom'
-
 
3
import Badge from '../../UI/Badge'
Línea 3... Línea 4...
3
 
4
 
4
const ListItemDropdown = ({ options = [], isShow }) => {
5
const ListItemDropdown = ({ options = [], isShow }) => {
5
  if (!options.length) return null
6
  if (!options.length) return null
6
  return (
7
  return (
Línea 11... Línea 12...
11
            <Link
12
            <Link
12
              to={href[0] === '/' ? href : `/${href}`}
13
              to={href[0] === '/' ? href : `/${href}`}
13
              onClick={(e) => childs.length && e.preventDefault()}
14
              onClick={(e) => childs.length && e.preventDefault()}
14
            >
15
            >
15
              {label}
16
              {label}
16
              {Boolean(count) && (
17
              {count && <Badge count={count} />}
17
                <span
-
 
18
                  className="badge position-relative ml-2"
-
 
19
                  style={{ left: 'auto', transform: 'none' }}
-
 
20
                >
-
 
21
                  {count}
-
 
22
                </span>
-
 
23
              )}
-
 
24
            </Link>
18
            </Link>
25
            {childs?.length && (
19
            {childs?.length && (
26
              <nav className="navigation-level_three">
20
              <nav className="navigation-level_three">
27
                <ul>
21
                <ul>
28
                  {childs?.map((optionsChild, index) => (
22
                  {childs?.map((optionsChild, index) => (