Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 4099 Rev 4109
Línea 3... Línea 3...
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
    containerClassName = '',
8
    currentPost = ''
8
    currentPost = null
9
}) {
9
}) {
10
    const [news, setNews] = useState([])
10
    const [news, setNews] = useState([])
11
    const loadNews = () => {
11
    const loadNews = () => {
12
        axios.get('/helpers/posts')
12
        axios.get('/helpers/posts')