Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
6515 stevensc 1
import React, { useEffect } from 'react'
2
import { axios } from '../../utils'
6516 stevensc 3
// import { useSelector } from 'react-redux'
6515 stevensc 4
 
6516 stevensc 5
// import PeopleYouMayKnow from '../../components/widgets/default/PeopleYouMayKnow'
6
// import SocialNetworks from '../../components/widgets/default/SocialNetworks'
7
// import SuggestWidget from '../../components/widgets/default/SuggestWidget'
8
// import HomeNews from '../../components/widgets/default/HomeNews'
9
// import DailyPulse from '../../components/widgets/default/DailyPulse'
6515 stevensc 10
 
6518 stevensc 11
const Home = () => {
6516 stevensc 12
  // const labels = useSelector(({ intl }) => intl.labels)
6515 stevensc 13
 
14
  useEffect(() => {
15
    axios
16
      .get('/dashboard', { headers: { 'Content-Type': 'application/json' } })
17
      .then((response) => console.log(response.data))
18
      .catch((err) => {
6517 stevensc 19
        console.log(`Error in fetch dashboard: ${err}`)
6515 stevensc 20
        throw new Error(err)
21
      })
22
  }, [])
23
 
24
  return (
25
    <main className="main-section-data container px-0">
6516 stevensc 26
      <h1>Dashboard</h1>
27
      {/* <aside className="main-left-sidebar d-none d-md-flex">
6515 stevensc 28
        <SuggestWidget
29
          url="/helpers/my-groups"
30
          title={`${labels.MY_GROUPS}:`}
31
          btnLabelAccept={labels.GROUP_VIEW}
32
        />
33
        <SuggestWidget
34
          url="/helpers/groups-suggestion"
35
          title={`${labels.SUGGEST_GROUPS}:`}
36
          btnLabelAccept={labels.GROUP_VIEW}
37
        />
38
        <SocialNetworks
39
          moodle={{ name: '', image: '' }}
40
          microlearning={{
41
            appStore: '',
42
            playStore: '',
43
          }}
44
        />
45
      </aside>
46
      <section className="feed-section"></section>
47
 
48
      <aside className="right-sidebar">
49
        <DailyPulse />
50
        <PeopleYouMayKnow />
51
        <HomeNews />
6516 stevensc 52
      </aside> */}
6515 stevensc 53
    </main>
54
  )
55
}
56
 
6518 stevensc 57
export default Home