Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 4502 | Ir a la última revisión | | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
4500 stevensc 1
import React, { useState } from 'react'
2
import ExpandMoreIcon from '@mui/icons-material/ExpandMore'
3
import parse from "html-react-parser";
4
 
5
const AboutGroup = (groupInfo) => {
6
    const [showModal, setShowModal] = useState(false)
7
 
8
    const openModal = (e) => {
9
        e.preventDefault();
10
        setShowModal(true)
11
    }
12
 
13
    return (
14
        <div className='suggest__widget'>
15
            <div className="linked__widget-header">
16
                <h3>About this group</h3>
17
            </div>
18
            <p>{parse(groupInfo.overview)}</p>
19
            <a className="load__suggest" onClick={(e) => openModal(e)}>
20
                <span>Ver más</span>
21
                <ExpandMoreIcon />
22
            </a>
23
        </div >
24
    )
25
}
26
 
27
export default AboutGroup