just-paja/improtresk-web

View on GitHub
src/news/components/NewsItem.jsx

Summary

Maintainability
A
0 mins
Test Coverage
import PropTypes from 'prop-types'
import React from 'react'

import PermaLink from '../../components/PermaLink'

const NewsItem = ({ id, name }) => (
  <div>
    <PermaLink id={id} title={name} to='newsDetail'>
      <strong>{name}</strong>
    </PermaLink>
  </div>
)

NewsItem.propTypes = {
  id: PropTypes.number.isRequired,
  name: PropTypes.string.isRequired
}

export default NewsItem