import React from 'react'; import {inject, observer} from 'mobx-react'; import {Link} from 'react-router'; import {Affix, Card, Slider, Select, Col, Row } from 'antd'; import {Tab, Tabs} from 'material-ui'; import './style.scss'; import {ItemCard} from "./ItemCard"; import ModalVouchersComponent from "./Modal"; import EmptyComponent from '../EmptyComponent'; const Option = Select.Option; @inject('appstate') @observer export default class VouchersComponent extends React.Component { constructor(props) { super(props); this.props = props; this.state = { isOpened: false, data: { name: '', background_color_1:'', background_color_2:'', images: { logo:'' }, description: '', additional_data: { information:'' }, // option: [ // { // value: '', // cost: '' // }, // ], sku: [ { id:'', name: '', price: '' }, ] }, }; this.defaultState = Object.assign({}, this.state); this.vouchersStore = props.appstate.vouchers; } componentDidMount() { this.vouchersStore.getList(); console.log('res list component',this.vouchersStore.getList()) } render() { return (
Voucher & Gift Card