Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 3259 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 3259 Rev 3719
Línea 1... Línea 1...
1
import Feed from '@components/dashboard/feed/feed'
1
import LazyFeed from '@components/dashboard/feed/lazy-feed';
2
import EmptySection from '@components/UI/EmptySection'
2
import EmptySection from '@components/UI/EmptySection';
3
import React from 'react'
3
import React from 'react';
4
 
4
 
5
const FeedList = ({ feeds = [] }) => {
5
const FeedList = ({ feeds = [] }) => {
6
  if (!feeds.length) {
6
  if (!feeds.length) {
7
    return <EmptySection message='No hay publicaciones para mostrar' />
7
    return <EmptySection message='No hay publicaciones para mostrar' />;
8
  }
8
  }
9
 
9
 
10
  return feeds.map(({ feed_unique, feed_uuid }) => (
10
  return feeds.map(({ feed_unique, feed_uuid }) => <LazyFeed key={feed_uuid} id={feed_unique} />);
11
    <Feed key={feed_uuid} id={feed_unique} />
-
 
12
  ))
-
 
13
}
11
};
14
 
12
 
15
export default FeedList
13
export default FeedList;