Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 4109 Rev 4440
Línea 2... Línea 2...
2
import React, { useEffect, useState } from 'react';
2
import React, { useEffect, useState } from 'react';
3
import { addNotification } from '../../../redux/notification/notification.actions';
3
import { addNotification } from '../../../redux/notification/notification.actions';
4
import { axios } from '../../../utils';
4
import { axios } from '../../../utils';
Línea 5... Línea 5...
5
 
5
 
6
export default function HomeNews({
6
export default function HomeNews({
7
    containerClassName = '',
7
    classname = 'peopleYouMayKnow',
8
    currentPost = null
8
    currentPost = null
9
}) {
9
}) {
10
    const [news, setNews] = useState([])
10
    const [news, setNews] = useState([])
11
    const loadNews = () => {
11
    const loadNews = () => {
Línea 30... Línea 30...
30
    useEffect(() => {
30
    useEffect(() => {
31
        loadNews()
31
        loadNews()
32
    }, [])
32
    }, [])
Línea 33... Línea 33...
33
 
33
 
34
    return (
34
    return (
35
        <div className={`${containerClassName} peopleYouMayKnow`}>
35
        <div className={classname}>
36
            <div className="sd-title">
36
            <div className="sd-title">
37
                <h3>Novedades</h3>
37
                <h3>Novedades</h3>
38
            </div>
38
            </div>
39
            <div className="suggestions-list">
39
            <div className="suggestions-list">