Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 673 Rev 675
Línea 37... Línea 37...
37
  const [userInfo, setuserInfo] = useState({})
37
  const [userInfo, setuserInfo] = useState({})
38
  const [notifications, setNotifications] = useState([])
38
  const [notifications, setNotifications] = useState([])
39
  const [confirmModalShow, setConfirmModalShow] = useState(false)
39
  const [confirmModalShow, setConfirmModalShow] = useState(false)
40
  const dispatch = useDispatch()
40
  const dispatch = useDispatch()
Línea 41... Línea 41...
41
 
41
 
42
  const { image, fullName, country, visits, connections, description } =
-
 
Línea 43... Línea 42...
43
    userInfo
42
  const { image, fullName, country, visits, connections } = userInfo
44
 
43
 
45
  const getNotifications = async () => {
44
  const getNotifications = async () => {
46
    axios
45
    axios
Línea 123... Línea 122...
123
  }
122
  }
Línea 124... Línea 123...
124
 
123
 
125
  useEffect(() => {
124
  useEffect(() => {
126
    getBackendVars('/helpers/menu')
125
    getBackendVars('/helpers/menu')
127
      .then(
126
      .then(
128
        ({ image, full_name, country, visits, connections, description }) => {
127
        ({ image, fullName, country, visits, connections, description }) => {
129
          setuserInfo({
128
          setuserInfo({
130
            image,
129
            image,
131
            full_name,
130
            fullName,
132
            country,
131
            country,
133
            visits,
132
            visits,
134
            connections,
-
 
135
            description
133
            connections
136
          })
134
          })
137
        }
135
        }
138
      )
136
      )
139
      .catch((err) => {
137
      .catch((err) => {
Línea 151... Línea 149...
151
      <Container as='main'>
149
      <Container as='main'>
152
        <Row>
150
        <Row>
153
          <Col as='aside' md='4' className='d-none d-md-flex'>
151
          <Col as='aside' md='4' className='d-none d-md-flex'>
154
            <ProfileInfo
152
            <ProfileInfo
155
              image={image}
153
              image={image}
156
              fullName={fullName}
154
              name={fullName}
157
              description={description}
-
 
158
              visits={visits}
155
              visits={visits}
159
              country={country}
156
              country={country}
160
              connections={connections}
157
              connections={connections}
161
            />
158
            />
162
          </Col>
159
          </Col>