crowdAI/crowdai

View on GitHub
app/javascript/react_components/notifications/NotificationItem.jsx

Summary

Maintainability
A
0 mins
Test Coverage
import React from 'react'

class NotificationItem extends React.Component {
  constructor(props) {
    super(props);

    this.state = { unread: this.props.unread };
  }


  render () {
    return (
      <li>
        <a href={this.props.notification.notification_url}>
          <img src={this.props.notification.thumbnail_url} alt="" />
          <span>{ this.props.notification.message }</span>
        </a>
      </li>
    )
  }
}

export default NotificationItem