Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 845 Rev 856
Línea 1... Línea 1...
1
import React, { useCallback, useState } from 'react'
1
import React, { useCallback, useState } from 'react'
2
import { useSelector } from 'react-redux'
2
import { useSelector } from 'react-redux'
3
import parse from 'html-react-parser'
3
import parse from 'html-react-parser'
4
import styled from 'styled-components'
4
import styled from 'styled-components'
Línea -... Línea 5...
-
 
5
 
-
 
6
const StyledParaphase = styled.p`
-
 
7
  color: ${(props) => props.theme.font.color.primary};
-
 
8
  font-size: 14px;
-
 
9
  line-height: 1.2;
-
 
10
`
5
 
11
 
6
const StyledViewMore = styled.span`
12
const StyledViewMore = styled.span`
7
  cursor: pointer;
13
  cursor: pointer;
8
  color: #00a6ff;
14
  color: #00a6ff;
9
  margin-left: 5px;
15
  margin-left: 5px;
Línea 40... Línea 46...
40
      return parse(fullStringText)
46
      return parse(fullStringText)
41
    },
47
    },
42
    [isReadMoreActive]
48
    [isReadMoreActive]
43
  )
49
  )
Línea 44... Línea 50...
44
 
50
 
45
  return <p {...rest}>{htmlParsedText(children)}</p>
51
  return <StyledParaphase {...rest}>{htmlParsedText(children)}</StyledParaphase>
Línea 46... Línea 52...
46
}
52
}