Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 5905 | Ir a la última revisión | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
4267 stevensc 1
/* eslint-disable react/prop-types */
5905 stevensc 2
import React, { useEffect } from 'react'
3
import { useDispatch } from 'react-redux'
4
import { setIntlLabels } from '../../../../redux/intl/intl.action'
5
import { setTimelineUrl } from '../../../../redux/feed/feed.actions'
6
 
4439 stevensc 7
import HomeNews from '../../../components/home-section/HomeNews'
5284 stevensc 8
import SocialNetworks from '../../../components/home-section/SocialNetworks'
4439 stevensc 9
import Aside from '../Aside/Aside'
4323 stevensc 10
import PeopleYouMayKnow from '../Aside/PeopleYouMayKnow'
4265 stevensc 11
import FeedSection from '../Feed/FeedSection'
5285 stevensc 12
import Groups from '../sidebar/Groups'
4296 stevensc 13
import Sidebar from '../sidebar/Sidebar'
5284 stevensc 14
import UserInfo from '../sidebar/UserInfo'
4265 stevensc 15
 
5905 stevensc 16
const HomeSection = ({ routeTimeline, backendVars, labels }) => {
17
  const dispatch = useDispatch()
18
 
19
  useEffect(() => {
20
    dispatch(setIntlLabels(labels))
21
    dispatch(setTimelineUrl(routeTimeline))
22
  }, [])
23
 
5107 stevensc 24
  return (
5901 stevensc 25
    <div className="container px-0">
26
      <div className="app__body layout__content">
27
        <Sidebar>
28
          <UserInfo {...backendVars} />
29
          <Groups />
5904 stevensc 30
          <SocialNetworks
31
            moodle={{
32
              image: backendVars.moodle_image,
33
              name: backendVars.moodle_name,
34
            }}
35
            microlearning={{
36
              playStore: backendVars.microlearning_playstore,
37
              appStore: backendVars.microlearning_appstore,
38
            }}
39
            className="sidebar-apps__widget"
40
          />
5901 stevensc 41
        </Sidebar>
5907 stevensc 42
        <FeedSection backendVars={backendVars} />
5901 stevensc 43
        <Aside>
44
          <PeopleYouMayKnow />
45
          <HomeNews classname="sidebar-apps__widget d-flex flex-column" />
46
        </Aside>
47
      </div>
48
    </div>
5107 stevensc 49
  )
4265 stevensc 50
}
51
 
5107 stevensc 52
export default HomeSection