Fakultas Ilmu Komputer UI

NotificationPage.jsx 721 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import React from 'react';
import { Segment } from 'semantic-ui-react';
import Notification from './components/Notification';

export default class NotificationPage extends React.Component {

  static propTypes = {
    user: React.PropTypes.object.isRequired,
  };

  constructor(props) {
    super(props);
    
  };

  generateNotifications() {
      return (
          <Segment className="notifikasi" >
              <Notification
                text="Hehe"
              />
              <Notification
                text="The Notification should be like this"
              />
          </Segment>
      );
  }

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