Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 4072 | Rev 5205 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 4072 Rev 5104
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 } 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'
6
import NotificationAlert from "../../../shared/notification/NotificationAlert";
6
import NotificationAlert from '../../../shared/notification/NotificationAlert'
7
import SocialNetworks from "./SocialNetworks";
7
import SocialNetworks from './SocialNetworks'
8
import ShareFeed from "../share-feed/ShareFeed"
8
import ShareFeed from '../share-feed/ShareFeed'
9
import PeopleYouMayKnow from "../../../shared/helpers/people-you-may-know/PeopleYouMayKnow"
9
import PeopleYouMayKnow from '../../../shared/helpers/people-you-may-know/PeopleYouMayKnow'
10
import HomeNews from "./HomeNews";
10
import HomeNews from './HomeNews'
11
import WidgetHelper from "../../../shared/helpers/my-groups-helper/MyGroups";
11
import WidgetHelper from '../../../shared/helpers/my-groups-helper/MyGroups'
12
import Spinner from "../../../shared/loading-spinner/Spinner";
12
import Spinner from '../../../shared/loading-spinner/Spinner'
Línea 13... Línea 13...
13
 
13
 
14
// Lazy Components
14
// Lazy Components
Línea 15... Línea 15...
15
const FeedSection = React.lazy(() => import("../feed-section/FeedSection"));
15
const FeedSection = React.lazy(() => import('../feed-section/FeedSection'))
16
 
16
 
Línea 17... Línea 17...
17
// Responsive Flags
17
// Responsive Flags
18
const isMobile = window.innerWidth < 1200
-
 
19
 
18
const isMobile = window.innerWidth < 1200
20
const HomeSection = ({ routeTimeline, backendVars }) => {
19
 
Línea 21... Línea 20...
21
 
20
const HomeSection = ({ routeTimeline, backendVars }) => {
Línea 22... Línea 21...
22
  const dispatch = useDispatch()
21
  const dispatch = useDispatch()
23
  const { image, feed } = backendVars;
22
  const { image, feed } = backendVars
24
 
23
 
25
  dispatch(setTimelineUrl(routeTimeline));
24
  dispatch(setTimelineUrl(routeTimeline))
26
 
25
 
27
  return (
26
  return (
28
    <>
27
    <>
29
      <div className="main-section">
28
      <div className="main-section">
30
        <div className='main-section-data'>
29
        <div className='main-section-data'>
31
          <div className="main-left-sidebar d-none d-md-flex">
30
          <div className="main-left-sidebar d-none d-md-flex">
32
            <WidgetHelper
31
            <WidgetHelper
33
              url="/helpers/my-groups"
32
              url="/helpers/my-groups"
34
              title="Mis Grupos:"
33
              title={`${LABELS.MY_GROUPS}:`}
35
            />
34
            />
36
            <WidgetHelper
35
            <WidgetHelper
37
              url="/helpers/groups-suggestion"
36
              url="/helpers/groups-suggestion"
38
              title="Grupos:"
37
              title={`${LABELS.GROUPS}:`}
Línea 61... Línea 60...
61
          </div>
60
          </div>
62
        </div>
61
        </div>
63
      </div>
62
      </div>
64
      <NotificationAlert />
63
      <NotificationAlert />
65
    </>
64
    </>
66
  );
65
  )
67
};
66
}
Línea 68... Línea -...
68
 
-
 
69
export default HomeSection;
67
 
-
 
68
export default HomeSection