This commit is contained in:
2019-01-03 17:10:02 +07:00
parent 7d83742788
commit f143af983b
7 changed files with 152 additions and 7 deletions

View File

@@ -505,7 +505,7 @@ export default class App extends React.Component {
);
}) : <EmptyComponent width="" image="default4" type="empty" header="" content="No notification yet! "/>
}
<Link to={`${LINKS.INBOX}/notification`}>
<Link to={`${LINKS.CART_DETAIL}`}>
<ListItem
primaryText={
<div style={{textAlign:'center'}}>
@@ -589,7 +589,7 @@ export default class App extends React.Component {
);
}) : <EmptyComponent width="" image="default4" type="empty" header="" content="No notification yet! "/>
}
<Link to={`${LINKS.INBOX}/notification`}>
<Link to={`${LINKS.CART_DETAIL}`}>
<ListItem
primaryText={
<div style={{textAlign:'center'}}>

View File

@@ -11,6 +11,7 @@ import SettingComponent from './../Setting';
import WalletComponent from '../Wallet';
import ItemsComponent from '../Items/index';
import VouchersComponent from '../Vouchers/index';
import VerifyVouchers from '../Vouchers/Verify';
import FormItems from "../Items/FormItems/FormItems";
import FormItemAdmin from "../Items/FormItems/FormItemAdmin";
import FormPromotion from "../Items/FormItems/FormPromotion";
@@ -83,6 +84,7 @@ export default class ComponentName extends React.Component {
<Route exact component={CarSearch} path={LINKS.CAR_SEARCH}/>
<Route exact component={ItemsComponent} path={LINKS.ITEMS}/>
<Route exact component={VouchersComponent} path={LINKS.VOUCHERS}/>
<Route exact component={VerifyVouchers} path={LINKS.VERIFY_VOUCHERS}/>
<Route exact component={FormItems} path={LINKS.FORM_ITEMS}/>
<Route exact component={FormItems} path={LINKS.FORM_ITEMS_EDIT}/>
<Route exact component={UploadItems} path={LINKS.FORM_UPLOAD}/>

View File

@@ -0,0 +1,122 @@
import React from 'react';
import {inject, observer} from 'mobx-react';
import {
FlatButton
} from 'material-ui';
import { Affix, Card, Slider, Select, Row, Col, Icon, Tag,Rate, Button, Checkbox ,Divider, DatePicker, Alert, Input } 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 Search from 'material-ui/svg-icons/action/search';
import Timer from 'react-compound-timer';
@inject('appstate')
@observer
export default class VerifyVouchers extends React.Component {
constructor(props) {
super(props);
this.props = props;
this.state = {
value: 1,
valueMinimal: 0,
valueMaximal: 0,
changeSearch:false,
};
this.defaultState = Object.assign({}, this.state);
this.http = props.appstate.http;
this.authStore = props.appstate.auth;
this.globalUI = props.appstate.globalUI;
}
componentDidMount() {
}
handleChangeMinimal = (valueMinimal) => {
this.setState({ valueMinimal });
};
handleChangeMaximal = (valueMaximal) => {
this.setState({ valueMaximal });
};
handleBlur = () => {
console.log('blur');
}
handleFocus = () => {
console.log('focus');
}
handleChangeSearch = () => {
this.setState({
changeSearch : true
})
}
handleChangeSearchFalse = () => {
this.setState({
changeSearch : false
})
}
render() {
const { valueMinimal, valueMaximal } = this.state;
return (
<div className="wallet containerMiddle">
<div className="row">
<div className="col s0 m2 l2" />
<div className="col s12 m8 l8">
<Card>
<div className="row">
<div style={{display:'flex',justifyContent:'center'}}>
<h2 style={{color:'grey'}}>
Verifikasi Keamanan
</h2>
</div>
</div>
<div className="row">
<Alert message="Untuk melanjutkan transaksi, masukan 6-digit kode verifikasi yang telah dikirim." type="info" />
</div>
<div className="row">
<p>Kode verifikasi telah dikirim ke ****.****.6523</p>
</div>
<div className="row">
<Input placeholder="Masukan Kode Verifikasi" />
</div>
<div className="row">
<Button style={{marginRight:10}}>Kirim ulang melalui SMS (<Timer
initialTime={70000}
lastUnit="s"
direction="backward"
>
{() => (
<React.Fragment>
<Timer.Seconds />
</React.Fragment>
)}
</Timer>)</Button>
<Button>Telepon Saya</Button>
</div>
<div className="row">
<div style={{display:'flex',justifyContent:'flex-end'}}>
<Button type="danger">Batal</Button>
<Button type="primary" style={{marginLeft:10}}>OK</Button>
</div>
</div>
</Card>
</div>
<div className="col s0 m2 l2" />
</div>
</div>
)
}
}

View File

@@ -111,6 +111,7 @@ export const LINKS = {
CAR:'/app/car',
CAR_SEARCH:'/app/car/search',
VOUCHERS: '/app/vouchers',
VERIFY_VOUCHERS: '/app/vouchers/verify',
CART_DETAIL: '/app/cart',
};