| Línea 1... |
Línea 1... |
| 1 |
/* eslint-disable react/prop-types */
|
1 |
/* eslint-disable react/prop-types */
|
| 2 |
import React from 'react'
|
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 |
|
| 3 |
import HomeNews from '../../../components/home-section/HomeNews'
|
7 |
import HomeNews from '../../../components/home-section/HomeNews'
|
| 4 |
import SocialNetworks from '../../../components/home-section/SocialNetworks'
|
8 |
import SocialNetworks from '../../../components/home-section/SocialNetworks'
|
| 5 |
import Aside from '../Aside/Aside'
|
9 |
import Aside from '../Aside/Aside'
|
| 6 |
import PeopleYouMayKnow from '../Aside/PeopleYouMayKnow'
|
10 |
import PeopleYouMayKnow from '../Aside/PeopleYouMayKnow'
|
| 7 |
import FeedSection from '../Feed/FeedSection'
|
11 |
import FeedSection from '../Feed/FeedSection'
|
| 8 |
import Groups from '../sidebar/Groups'
|
12 |
import Groups from '../sidebar/Groups'
|
| 9 |
import Sidebar from '../sidebar/Sidebar'
|
13 |
import Sidebar from '../sidebar/Sidebar'
|
| 10 |
import UserInfo from '../sidebar/UserInfo'
|
14 |
import UserInfo from '../sidebar/UserInfo'
|
| Línea 11... |
Línea 15... |
| 11 |
|
15 |
|
| - |
|
16 |
const HomeSection = ({ routeTimeline, backendVars, labels }) => {
|
| - |
|
17 |
const dispatch = useDispatch()
|
| - |
|
18 |
|
| - |
|
19 |
useEffect(() => {
|
| - |
|
20 |
dispatch(setIntlLabels(labels))
|
| - |
|
21 |
dispatch(setTimelineUrl(routeTimeline))
|
| - |
|
22 |
}, [])
|
| 12 |
const HomeSection = ({ routeTimeline, backendVars }) => {
|
23 |
|
| 13 |
return (
|
24 |
return (
|
| 14 |
<div className="container px-0">
|
25 |
<div className="container px-0">
|
| 15 |
<div className="app__body layout__content">
|
26 |
<div className="app__body layout__content">
|
| 16 |
<Sidebar>
|
27 |
<Sidebar>
|