Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 2279 Rev 2280
Línea 3... Línea 3...
3
import { useSelector } from 'react-redux'
3
import { useSelector } from 'react-redux'
Línea 4... Línea 4...
4
 
4
 
Línea 5... Línea 5...
5
import useFetch from '@app/hooks/useFetch'
5
import useFetch from '@app/hooks/useFetch'
-
 
6
 
6
 
7
import Widget from '@app/components/UI/Widget'
7
import Widget from '@app/components/UI/Widget'
-
 
Línea 8... Línea 8...
8
import EmptySection from '@app/components/UI/EmptySection'
8
import List from '@app/components/UI/List'
9
import { List, ListItem } from '@app/components/UI/List'
9
import EmptySection from '@app/components/UI/EmptySection'
10
 
10
 
11
export default function HomeNews({ currentPost }) {
11
export default function HomeNews({ currentPost }) {
Línea 20... Línea 20...
20
      <Widget.Body>
20
      <Widget.Body>
21
        {news?.length <= 0 ? (
21
        {news?.length <= 0 ? (
22
          <EmptySection message={labels.not_available_posts} />
22
          <EmptySection message={labels.not_available_posts} />
23
        ) : null}
23
        ) : null}
Línea 24... Línea 24...
24
 
24
 
25
        <List>
25
        <List styles={{ maxHeight: '380px', overflow: 'scroll' }}>
26
          {news?.map(({ link, title, image, date }) => {
26
          {news?.map(({ link, title, image, date }) => {
Línea 27... Línea 27...
27
            if (link.includes(currentPost)) return null
27
            if (link.includes(currentPost)) return null
28
 
28
 
29
            return (
29
            return (
30
              <ListItem
30
              <List.Item
31
                key={title}
31
                key={title}
32
                title={title}
32
                title={title}
33
                image={image}
33
                image={image}