Fakultas Ilmu Komputer UI

NotificationPage.jsx 629 Bytes
Newer Older
1
import React from 'react';
2
import PropTypes from 'prop-types';
3
4
5
6
7
import { Segment } from 'semantic-ui-react';
import Notification from './components/Notification';

export default class NotificationPage extends React.Component {
  static propTypes = {
8
    user: PropTypes.object.isRequired,
9
10
11
12
  };

  constructor(props) {
    super(props);
13
  }
14
15

  generateNotifications() {
16
17
18
19
20
21
    return (
      <Segment className="notifikasi">
        <Notification text="Hehe" />
        <Notification text="The Notification should be like this" />
      </Segment>
    );
22
23
24
  }

  render() {
25
    return <div>{this.generateNotifications()}</div>;
26
27
  }
}