Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 3032 Rev 3047
Línea 38... Línea 38...
38
  const [isAdded, setIsAdded] = useState(false)
38
  const [isAdded, setIsAdded] = useState(false)
39
  const [connectionUrl, setConnectionUrl] = useState('')
39
  const [connectionUrl, setConnectionUrl] = useState('')
40
  const [modalToShow, setModalToShow] = useState(null)
40
  const [modalToShow, setModalToShow] = useState(null)
41
  const [settedOverview, setSettedOverview] = useState('')
41
  const [settedOverview, setSettedOverview] = useState('')
42
  const [isModalShow, setIsModalShow] = useState(false)
42
  const [isModalShow, setIsModalShow] = useState(false)
43
  const [isEdit, setIsEdit] = useState(false)
-
 
44
  const labels = useSelector(({ intl }) => intl.labels)
43
  const labels = useSelector(({ intl }) => intl.labels)
45
  const { pathname } = useLocation()
44
  const { pathname } = useLocation()
46
  const dispatch = useDispatch()
45
  const dispatch = useDispatch()
Línea 47... Línea 46...
47
 
46
 
Línea 97... Línea 96...
97
 
96
 
98
  useEffect(() => {
97
  useEffect(() => {
99
    linkRequest ? setConnectionUrl(linkRequest) : setConnectionUrl(linkCancel)
98
    linkRequest ? setConnectionUrl(linkRequest) : setConnectionUrl(linkCancel)
Línea 100... Línea -...
100
  }, [linkRequest, linkCancel])
-
 
101
 
-
 
102
  useEffect(() => {
-
 
103
    setIsEdit(pathname.includes('edit'))
-
 
104
  }, [pathname])
99
  }, [linkRequest, linkCancel])
105
 
100
 
106
  return (
101
  return (
-
 
102
    <Widget>
107
    <Widget>
103
      <Cover cover={cover} edit={edit} />
108
      <Cover cover={cover} edit={edit} />
104
 
109
      <Widget.Body>
105
      <Widget.Body>
110
        <Avatar
106
        <Avatar
111
          src={image}
107
          src={image}
112
          alt={fullName}
108
          alt={fullName}
113
          styles={{
109
          styles={{
114
            width: { xs: '100px', lg: '150px' },
110
            width: { xs: '100px', lg: '150px' },
115
            height: { xs: '100px', lg: '150px' },
111
            height: { xs: '100px', lg: '150px' },
116
            mt: { xs: '-50px', lg: '-75px' },
112
            mt: { xs: '-50px', lg: '-75px' },
117
            border: '4px solid #fff',
113
            border: '4px solid #fff',
118
            backgroundColor: '#c9ced4',
114
            backgroundColor: '#c9ced4',
119
            cursor: isEdit ? 'pointer' : 'default'
115
            cursor: edit ? 'pointer' : 'default'
120
          }}
116
          }}
Línea 121... Línea 117...
121
          edit={edit}
117
          edit={edit}