Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 1540 Rev 2111
Línea 1... Línea 1...
1
import React, {useEffect, useState} from 'react';
1
import React, {useEffect, useState} from 'react';
2
import { addNotification } from '../../../redux/notification/notification.actions';
2
import { addNotification } from '../../../redux/notification/notification.actions';
3
import { axios } from '../../../utils';
3
import { axios } from '../../../utils';
4
import styles from './HomeSection.module.scss';
4
import styles from './HomeSection.module.scss';
Línea 5... Línea 5...
5
 
5
 
6
export default function HomeNews() {
6
export default function HomeNews({containerClassName = '', suggestionsContainerClassName = ''}) {
7
    const [news, setNews] = useState([])
7
    const [news, setNews] = useState([])
8
    const loadNews = () => {
8
    const loadNews = () => {
9
        axios.get('/helpers/posts')
9
        axios.get('/helpers/posts')
10
            .then(res => {
10
            .then(res => {
Línea 25... Línea 25...
25
    return (
25
    return (
26
        <div
26
        <div
27
            style={{
27
            style={{
28
                padding: '5% 0%'
28
                padding: '5% 0%'
29
            }}
29
            }}
-
 
30
            className={containerClassName}
30
        >
31
        >
31
            <div className={styles.suggestions + ' border-gray'}>
32
            <div className={styles.suggestions + ' border-gray '+suggestionsContainerClassName}>
32
                <div className="sd-title">
33
                <div className="sd-title">
33
                    <h3>Novedades</h3>
34
                    <h3>Novedades</h3>
34
                </div>
35
                </div>
Línea 35... Línea 36...
35
 
36