Fakultas Ilmu Komputer UI

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

export default class NotificationPage extends React.Component {
  static propTypes = {
MADE WIRA DHANAR SANTIKA's avatar
MADE WIRA DHANAR SANTIKA committed
9
    user: PropTypes.object,
10
11
12
13
  };

  constructor(props) {
    super(props);
14
15
16

    console.log('Notifikasi');
    Storage.set('menu-active-state', 'Notifikasi');
17
  }
18

MADE WIRA DHANAR SANTIKA's avatar
MADE WIRA DHANAR SANTIKA committed
19
  render() {
20
    return (
MADE WIRA DHANAR SANTIKA's avatar
MADE WIRA DHANAR SANTIKA committed
21
22
      <div className="notificationPage">
        <Segment className="notifikasi">
23
24
25
          <Notification
            title="Your Application Has Been Rejected"
            text="Tutuplapak has rejected your applications"
MADE WIRA DHANAR SANTIKA's avatar
MADE WIRA DHANAR SANTIKA committed
26
27
            timestamp="2019-10-10T13:00:00"
          />
28
29
30
          <Notification
            title="Lorem Ipsum"
            text="Dolor Sit Amet"
MADE WIRA DHANAR SANTIKA's avatar
MADE WIRA DHANAR SANTIKA committed
31
32
33
34
            timestamp="1970-01-01T06:00:00"
          />
        </Segment>
      </div>
35
    );
36
37
  }
}