Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 4314 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 4314 Rev 4315
Línea 37... Línea 37...
37
  }, []);
37
  }, []);
Línea 38... Línea 38...
38
 
38
 
39
  const dataSlice = () => {
39
  const dataSlice = () => {
40
    let infoFollows = [...widgetData]
40
    let infoFollows = [...widgetData]
41
    if (!lookMore) {
41
    if (!lookMore) {
42
      infoFollows = infoFollows.slice(0, 1)
42
      infoFollows = infoFollows.slice(0, 3)
43
    }
43
    }
44
    return infoFollows
44
    return infoFollows
Línea 45... Línea 45...
45
  }
45
  }
Línea 58... Línea 58...
58
 
58
 
59
      <ul className={`helper__list ${lookMore ? 'show' : 'hide'}`}>
59
      <ul className={`helper__list ${lookMore ? 'show' : 'hide'}`}>
60
        {widgetData.length
60
        {widgetData.length
61
          ? dataSlice().map(({ id, name, profile }) =>
61
          ? dataSlice().map(({ id, name, profile }) =>
62
            <li key={id}>
62
            <li key={id}>
63
              <a href={profile} className='sidebar__stat'>
63
              <a href={profile} className='helper__list-itemf'>
64
                <GroupIcon />
64
                <GroupIcon />
65
                <span>{name}</span>
65
                <span>{name}</span>
66
              </a>
66
              </a>
67
            </li>
67
            </li>