Rev 6517 | AutorÃa | Ultima modificación | Ver Log |
import React, { useEffect } from 'react'import { axios } from '../../utils'// import { useSelector } from 'react-redux'// import PeopleYouMayKnow from '../../components/widgets/default/PeopleYouMayKnow'// import SocialNetworks from '../../components/widgets/default/SocialNetworks'// import SuggestWidget from '../../components/widgets/default/SuggestWidget'// import HomeNews from '../../components/widgets/default/HomeNews'// import DailyPulse from '../../components/widgets/default/DailyPulse'const Home = () => {// const labels = useSelector(({ intl }) => intl.labels)useEffect(() => {axios.get('/dashboard', { headers: { 'Content-Type': 'application/json' } }).then((response) => console.log(response.data)).catch((err) => {console.log(`Error in fetch dashboard: ${err}`)throw new Error(err)})}, [])return (<main className="main-section-data container px-0"><h1>Dashboard</h1>{/* <aside className="main-left-sidebar d-none d-md-flex"><SuggestWidgeturl="/helpers/my-groups"title={`${labels.MY_GROUPS}:`}btnLabelAccept={labels.GROUP_VIEW}/><SuggestWidgeturl="/helpers/groups-suggestion"title={`${labels.SUGGEST_GROUPS}:`}btnLabelAccept={labels.GROUP_VIEW}/><SocialNetworksmoodle={{ name: '', image: '' }}microlearning={{appStore: '',playStore: '',}}/></aside><section className="feed-section"></section><aside className="right-sidebar"><DailyPulse /><PeopleYouMayKnow /><HomeNews /></aside> */}</main>)}export default Home