import React from 'react'; import {inject, observer} from 'mobx-react'; import { FlatButton, Divider } from 'material-ui'; import { Affix, Card, Slider, Select, Row, Col, Icon, Tag,Rate, Button, Checkbox , DatePicker, Alert, Input ,Avatar} from 'antd'; import {startCase} from 'lodash'; import LoadingDialog from "../../LoadingDialog"; import Loader from 'react-loader-advanced'; 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 {Route} from "react-router-dom"; import get from 'lodash.get'; @inject('appstate') @observer export default class CheckoutVouchers 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() { console.log("skuid",this.vouchersStore.skuId); console.log("skuName",this.vouchersStore.skuName); console.log("skuPrice",this.vouchersStore.skuPrice); console.log("data",this.vouchersStore.dataItems); } render() { let image = get(this.vouchersStore.dataItems, 'images.logo', ''); if (!image.includes('http')) { image = this.http.appendImagePath(image); } return (
this.props.history.goBack()} label="Back" primary={true} icon={} /> //

// Detail Pembelian //

//
} >

Detail Pembelian

{/* */}

Jenis Layanan :

{this.vouchersStore.dataItems.name} {this.vouchersStore.skuName}

Point :

{(+this.vouchersStore.skuPrice).toFixed(0)} Points

Point

{this.props.appstate.wallet.data.point} Points

Total Pembayaran Point

{(+this.vouchersStore.skuPrice).toFixed(0)} Points

) } }