Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 891 Rev 1507
Línea 3... Línea 3...
3
import { axios } from '../../../utils'
3
import { axios } from '../../../utils'
4
import { useSelector } from 'react-redux'
4
import { useSelector } from 'react-redux'
5
import { addNotification } from '../../../redux/notification/notification.actions'
5
import { addNotification } from '../../../redux/notification/notification.actions'
6
import styled from 'styled-components'
6
import styled from 'styled-components'
Línea 7... Línea 7...
7
 
7
 
8
import StyledContainer from '../WidgetLayout'
8
import WidgetWrapper from '../WidgetLayout'
Línea 9... Línea 9...
9
import EmptySection from '../../UI/EmptySection'
9
import EmptySection from '../../UI/EmptySection'
10
 
10
 
11
const StyledNewsList = styled.ul`
11
const StyledNewsList = styled.ul`
Línea 75... Línea 75...
75
  useEffect(() => {
75
  useEffect(() => {
76
    loadNews()
76
    loadNews()
77
  }, [])
77
  }, [])
Línea 78... Línea 78...
78
 
78
 
79
  return (
79
  return (
80
    <StyledContainer>
80
    <WidgetWrapper>
Línea 81... Línea 81...
81
      <StyledContainer.Header title={labels.posts} />
81
      <WidgetWrapper.Header title={labels.posts} />
82
 
82
 
83
      <StyledContainer.Body className='py-0'>
83
      <WidgetWrapper.Body className='py-0'>
84
        <StyledNewsList>
84
        <StyledNewsList>
85
          {!news.length ? (
85
          {!news.length ? (
86
            <EmptySection message={labels.not_available_posts} />
86
            <EmptySection message={labels.not_available_posts} />
Línea 103... Línea 103...
103
                </StyledNewItem>
103
                </StyledNewItem>
104
              )
104
              )
105
            })
105
            })
106
          )}
106
          )}
107
        </StyledNewsList>
107
        </StyledNewsList>
108
      </StyledContainer.Body>
108
      </WidgetWrapper.Body>
109
    </StyledContainer>
109
    </WidgetWrapper>
110
  )
110
  )
111
}
111
}