import React from 'react'; import _ from 'lodash'; import { Container, Wizard, Card, Nav, NavItem, NavLink, CardFooter, CardBody, Button, Row, Col, Table, Form, FormGroup, Input, InputGroup, InputGroupAddon, Label, DropdownToggle, DropdownMenu, DropdownItem, UncontrolledDropdown } from './../../../components'; import { HeaderMain } from "../../components/HeaderMain"; const sequence = ['your-cart', 'shipping', 'payment', 'summary']; const items = [ { name: 'Incredible Metal Keyboard', quantity: 22, price: '$578.00' }, { name: 'Incredible Soft Cheese', quantity: 3, price: '$278.00' }, { name: 'Handcrafted Granite Sausages', quantity: 29, price: '$465.00' }, { name: 'Awesome Metal Gloves', quantity: 15, price: '$501.00' } ]; const WizardStep1 = () => (

Your Bags are Ready to Check Out!

Discover goods you'll love from brands that inspire. The easiest way to open your own online store. Discover amazing stuff or open your own store for free!

Below is a sample page for your cart, Created using pages design UI Elementes
{ _.map(items, (item, index) => ( )) }
# Description Qty Total
{ item.name } { item.quantity } { item.price }
Sub-Total
$114.00
VAT
$876.78
Total
$986.78
); const WizardStep2 = () => (

Your Information is Safe with Us!

We respect your privacy and protect it with strong encryption, plus strict policies. Two-step verification, which we encourage all our customers to use.

Fields marked as * are Required!
Name and Email Address
Billing Address
PL (+48) PL (+48) UK (+44) PL (+48) PL (+48) UK (+44)
); const WizardStep3 = () => (

We Secured Your Line

Below is a sample page for your cart , Created using pages design UI Elementes.

{ _.map(items, (item, index) => ( )) }
# Description Qty Total
{ item.name } { item.quantity } { item.price }
$986.78
Invoice are issued on the date of despatch. Payment terms: Pre-orders: within 10 days of invoice date with 4% discount, from the 11th to the 30th day net. Re-orders: non-reduced stock items are payable net after 20 days.
Credit Card
Jun (06) Jun (06) Jul (07)) Aug (08)   2018 2018 2019 2020
); const WizardStep4 = () => (

Summary

Below is a sample page for your cart , Created using pages design UI Elementes.

{ _.map(items, (item, index) => ( )) }
# Description Qty Total
{ item.name } { item.quantity } { item.price }
$986.78
Invoice are issued on the date of despatch. Payment terms: Pre-orders: within 10 days of invoice date with 4% discount, from the 11th to the 30th day net. Re-orders: non-reduced stock items are payable net after 20 days.
Name and Email Address
First Name
John
Last Name
Novoselic
Email
john@novoselic.com
Billing Address
Address
65575 Wintheiser Skyway Einar Pike
Country
United Kingdom
City
London
State/Province
Greater London
ZIP Code
151
Phone
+48 383-747-234
Credit Card
Card Name
Visa
Card Number
**** **** **** 6765
); export class WizardExample extends React.Component { state = { currentStep: _.first(sequence) } render() { const { currentStep } = this.state; return ( } complete={ this._isComplete(sequence[0]) } > Your Cart } complete={ this._isComplete(sequence[1]) } > Shipping } complete={ this._isComplete(sequence[2]) } > Payment } complete={ this._isComplete(sequence[3]) } > Summary { (() => { switch(this.state.currentStep) { case sequence[0]: return case sequence[1]: return case sequence[2]: return case sequence[3]: return } })() }
{ currentStep !== sequence[0] && ( ) } { currentStep !== sequence[sequence.length - 1] && ( ) }
); } _changeStep = (stepId) => { this.setState({ currentStep: stepId }); } _prevStep = () => { const index = sequence.indexOf(this.state.currentStep); this.setState({ currentStep: sequence[index - 1] }); } _nextStep = () => { const index = sequence.indexOf(this.state.currentStep); this.setState({ currentStep: sequence[index + 1] }); } _isComplete = (stepId) => sequence.indexOf(stepId) < sequence.indexOf(this.state.currentStep) }