Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 1770 Rev 1772
Línea 3... Línea 3...
3
import Feed from '../feed-template/Feed'
3
import Feed from '../feed-template/Feed'
4
import EmptySection from '@app/components/UI/EmptySection'
4
import EmptySection from '@app/components/UI/EmptySection'
5
import Spinner from '@app/components/UI/Spinner'
5
import Spinner from '@app/components/UI/Spinner'
Línea 6... Línea 6...
6
 
6
 
7
const FeedList = ({ feeds = [], loading = false }) => {
-
 
8
  if (loading) {
7
const FeedList = ({ feeds = [], loading = false }) => {
9
    return <Spinner />
-
 
10
  }
-
 
11
 
-
 
12
  if (!feeds.length) {
-
 
13
    return <EmptySection message='No hay publicaciones' />
-
 
14
  }
-
 
15
 
-
 
16
  return (
-
 
17
    <>
-
 
18
      {feeds.map((feed) => (
-
 
19
        <Feed key={feed.feed_uuid} id={feed.feed_unique} />
-
 
20
      ))}
-
 
21
    </>
-
 
22
  )
8
  return <Spinner />
Línea 23... Línea 9...
23
}
9
}