| Línea 1... |
Línea 1... |
| 1 |
/* eslint-disable react/prop-types */
|
1 |
/* eslint-disable react/prop-types */
|
| 2 |
import React, { Suspense } from 'react'
|
2 |
import React, { Suspense, useEffect } from 'react'
|
| 3 |
import { useDispatch } from 'react-redux'
|
3 |
import { useDispatch } from 'react-redux'
|
| 4 |
import { setTimelineUrl } from '../../../redux/feed/feed.actions'
|
4 |
import { setTimelineUrl } from '../../../redux/feed/feed.actions'
|
| 5 |
import { feedTypes } from '../../../redux/feed/feed.types'
|
5 |
import { feedTypes } from '../../../redux/feed/feed.types'
|
| Línea 6... |
Línea 6... |
| 6 |
|
6 |
|
| 7 |
//
|
7 |
// Components
|
| 8 |
import NotificationAlert from '../../../shared/notification/NotificationAlert'
|
8 |
import NotificationAlert from '../../../shared/notification/NotificationAlert'
|
| 9 |
import SocialNetworks from './SocialNetworks'
|
9 |
import SocialNetworks from './SocialNetworks'
|
| 10 |
import ShareFeed from '../share-feed/ShareFeed'
|
10 |
import ShareFeed from '../share-feed/ShareFeed'
|
| 11 |
import PeopleYouMayKnow from '../../../shared/helpers/people-you-may-know/PeopleYouMayKnow'
|
11 |
import PeopleYouMayKnow from '../../../shared/helpers/people-you-may-know/PeopleYouMayKnow'
|
| 12 |
import DailyPulse from '../../../shared/helpers/daily-pulse/DailyPulse'
|
12 |
import DailyPulse from '../../../shared/helpers/daily-pulse/DailyPulse'
|
| 13 |
import HomeNews from './HomeNews'
|
13 |
import HomeNews from './HomeNews'
|
| 14 |
import WidgetHelper from '../../../shared/helpers/my-groups-helper/MyGroups'
|
14 |
import WidgetHelper from '../../../shared/helpers/my-groups-helper/MyGroups'
|
| - |
|
15 |
import Spinner from '../../../shared/loading-spinner/Spinner'
|
| Línea 15... |
Línea 16... |
| 15 |
import Spinner from '../../../shared/loading-spinner/Spinner'
|
16 |
import { setIntlLabels } from '../../../redux/intl/intl.action'
|
| 16 |
|
17 |
|
| Línea 17... |
Línea -... |
| 17 |
// Lazy Components
|
- |
|
| 18 |
const FeedSection = React.lazy(() => import('../feed-section/FeedSection'))
|
- |
|
| 19 |
|
- |
|
| 20 |
// Responsive Flags
|
18 |
// Lazy Components
|
| 21 |
const isMobile = window.innerWidth < 1200
|
- |
|
| 22 |
|
19 |
const FeedSection = React.lazy(() => import('../feed-section/FeedSection'))
|
| - |
|
20 |
|
| Línea -... |
Línea 21... |
| - |
|
21 |
const HomeSection = ({ routeTimeline, routeDailyPulse, backendVars, labels }) => {
|
| 23 |
const HomeSection = ({ routeTimeline, routeDailyPulse, backendVars }) => {
|
22 |
const { image, feed } = backendVars
|
| - |
|
23 |
const dispatch = useDispatch()
|
| - |
|
24 |
|
| Línea 24... |
Línea 25... |
| 24 |
const dispatch = useDispatch()
|
25 |
useEffect(() => {
|
| 25 |
const { image, feed } = backendVars
|
26 |
dispatch(setTimelineUrl(routeTimeline))
|
| 26 |
|
27 |
dispatch(setIntlLabels(routeTimeline))
|
| Línea 27... |
Línea 28... |
| 27 |
dispatch(setTimelineUrl(routeTimeline))
|
28 |
}, [])
|
| 28 |
|
29 |
|
| 29 |
return (
|
30 |
return (
|
| 30 |
<>
|
31 |
<>
|
| 31 |
<div className='main-section-data container'>
|
32 |
<div className='main-section-data container'>
|
| Línea 32... |
Línea 33... |
| 32 |
|
33 |
|
| 33 |
<div className="main-left-sidebar d-none d-md-flex">
|
34 |
<div className="main-left-sidebar d-none d-md-flex">
|