Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 2897 Rev 2898
Línea 12... Línea 12...
12
  const isTruncated = stripText.length > maxLength
12
  const isTruncated = stripText.length > maxLength
Línea 13... Línea 13...
13
 
13
 
Línea 14... Línea 14...
14
  const toggleShowMore = () => setShowMore((prevState) => !prevState)
14
  const toggleShowMore = () => setShowMore((prevState) => !prevState)
15
 
15
 
16
  return (
16
  return (
Línea 17... Línea 17...
17
    <Typography onClick={toggleShowMore}>
17
    <Typography>
18
      {parse(showMore ? stripText : truncatedText)}
18
      {parse(showMore ? stripText : truncatedText)}
19
 
19