Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 2645 Rev 2647
Línea 7... Línea 7...
7
import CompanyInfoModal from '../modals/CompanyInfoModal'
7
import CompanyInfoModal from '../modals/CompanyInfoModal'
Línea 8... Línea 8...
8
 
8
 
9
const AboutCompany = (companyInfo) => {
9
const AboutCompany = (companyInfo) => {
Línea 10... Línea 10...
10
  const [showModal, setShowModal] = useState(false)
10
  const [showModal, setShowModal] = useState(false)
Línea 11... Línea 11...
11
 
11
 
12
  const openModal = () => setShowModal(true)
12
  const toggleModal = () => setShowModal(!showModal)
13
 
13
 
14
  return (
14
  return (
Línea 19... Línea 19...
19
          <Typography>
19
          <Typography>
20
            {parse(companyInfo.overview ?? 'Sin descripción')}
20
            {parse(companyInfo.overview ?? 'Sin descripción')}
21
          </Typography>
21
          </Typography>
22
        </Widget.Body>
22
        </Widget.Body>
23
        <Widget.Actions styles={{ padding: 0 }}>
23
        <Widget.Actions styles={{ padding: 0 }}>
24
          <Button onClick={openModal} fullWidth sx={{ borderRadius: 0 }}>
24
          <Button onClick={toggleModal} fullWidth sx={{ borderRadius: 0 }}>
25
            Ver más
25
            Ver más
26
            <East />
26
            <East />
27
          </Button>
27
          </Button>
28
        </Widget.Actions>
28
        </Widget.Actions>
29
      </Widget>
29
      </Widget>
30
      <CompanyInfoModal
30
      <CompanyInfoModal
31
        show={showModal}
31
        show={showModal}
32
        closeModal={() => setShowModal(false)}
32
        closeModal={toggleModal}
33
        company={companyInfo}
33
        company={companyInfo}
34
      />
34
      />
35
    </>
35
    </>
36
  )
36
  )
37
}
37
}