Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 4619 Rev 5366
Línea 1... Línea 1...
1
/* eslint-disable react/prop-types */
1
/* eslint-disable react/prop-types */
2
import React from 'react'
2
import React from 'react'
3
import parse from "html-react-parser";
3
import parse from 'html-react-parser'
4
import Avatar from '../../../../../shared/Avatar/Avatar'
4
import Avatar from '../../../../../shared/Avatar/Avatar'
5
import StatItem from '../../../../../dashboard/templates/linkedin/sidebar/StatItem';
5
import StatItem from '../../../../../dashboard/templates/linkedin/sidebar/StatItem'
Línea 6... Línea 6...
6
 
6
 
7
const GroupInfo = ({
7
const GroupInfo = ({
8
    cover = '',
8
  cover = '',
9
    image = '',
9
  image = '',
10
    name = '',
10
  name = '',
11
    overview = '',
11
  overview = '',
12
    groupId = '',
12
  groupId = '',
13
    totalMembers = '',
13
  totalMembers = '',
14
    groupType = '',
14
  groupType = '',
15
    accessibility = '',
15
  accessibility = '',
16
    type = ''
16
  type = ''
17
}) => {
17
}) => {
18
    return (
-
 
19
        <>
18
  return (
20
            <div className={`sidebar__top ${!cover && 'pt-3'}`}>
19
        <div className={`sidebar__top ${cover && 'pt-0'}`}>
21
                {cover && <img src={`/storage/type/${type}-cover/code/${groupId}/${cover ? `filename/${cover}` : ""}`} alt='Profile cover' className='sidebar__cover' />}
20
            {cover && <img src={`/storage/type/${type}-cover/code/${groupId}/${cover ? `filename/${cover}` : ''}`} alt='Profile cover' className='sidebar__cover' />}
22
                <Avatar imageUrl={`/storage/type/${type}/code/${groupId}/${image ? `filename/${image}` : ""}`} size='xl' name={name} />
21
            <Avatar imageUrl={`/storage/type/${type}/code/${groupId}/${image ? `filename/${image}` : ''}`} size='xl' name={name} />
23
                <h2>{parse(name)}</h2>
22
            <h2>{parse(name)}</h2>
24
                <span>{`${groupType} - ${accessibility}`}</span>
23
            <span>{`${groupType} - ${accessibility}`}</span>
25
                {parse(overview)}
-
 
26
            </div>
-
 
27
            <div className='sidebar__stats'>
24
            {parse(overview)}
28
                <StatItem title='Número de miembros' number={totalMembers} url='#' />
-
 
29
            </div>
25
            <StatItem title='Número de miembros' number={totalMembers} url='#' />
30
        </>
26
        </div>
31
    )
27
  )
Línea 32... Línea -...
32
}
-
 
33
 
28
}
-
 
29