import React from 'react'; import {inject, observer} from 'mobx-react'; import { FlatButton, Divider as DividerMaterialUI } from 'material-ui'; import { Affix, Card, Slider, Select, Row, Col, Icon, Tag,Rate, Button, Checkbox , DatePicker, Alert, Input ,Avatar, Collapse, notification, Divider } from 'antd'; import {startCase} from 'lodash'; import LoadingDialog from "../../LoadingDialog"; import Loader from 'react-loader-advanced'; // import './style.scss'; import {DIALOG} from "../../../stores/global_ui"; import EmptyComponent from '../../EmptyComponent'; import NavigationArrowBack from 'material-ui/svg-icons/navigation/arrow-back'; import {LINKS} from "../../../routes"; import {APP_TYPE} from "../../../config/app"; const Panel = Collapse.Panel; @inject('appstate') @observer export default class PaymentVouchers extends React.Component { constructor(props) { super(props); this.props = props; this.state = { value: 1, }; this.defaultState = Object.assign({}, this.state); this.http = props.appstate.http; this.authStore = props.appstate.auth; this.globalUI = props.appstate.globalUI; this.vouchersStore = props.appstate.vouchers; } componentDidMount() { } render() { const openNotificationWithIcon = (type) => { notification[type]({ message: 'Berhasil', description: 'Selamat anda telah mendapatkan vouchers sebesar KFC Rp. 50,000', placement:'topRight', duration: 5, }); }; const price = (+this.props.vouchersStore.skuPrice).toFixed(0); const qty = 1; const total = price * qty; let applicationName = 'Giift'; let applicationLogo = 'http://giift.asacreative.com/giift_logo_wide.4d15de72.png'; if(APP_TYPE === 'btn') { applicationName = 'BTN'; applicationLogo = 'http://btn-redemption-2.bangun-kreatif.com/dr6u0fppdi4xy.cloudfront.net/FilesDirectory/Albilad/ImgIconImage/logo-btn.png'; } return(
{this.props.vouchersStore.dataItems.name} - {this.props.vouchersStore.skuName}
{price} Points
{qty} x {price} Points
{total} Points
Tagihan
{total} Points
{this.vouchersStore.dataItems.name} - {this.vouchersStore.skuName}
{price} Points
{qty} x {price} Points
{total} Points
Tagihan
{total} Points