render()

in assets/src/modules/checkout/CheckoutConfirm.tsx [32:56]


  render() {
    if (this.state.toPastOrders) return <Redirect to='/past' />

    return (
      <div>
        <SearchBar />
        <CategoryNavBar />
        <div className="well-bs">
          <div className="white-box no-margin-top no-margin-bottom">
            <h3>Purchase confirmed</h3>
          </div>
        </div>
        <div className="well-bs full-page no-padding-bottom no-padding-top">
          <div className="white-box padding-50 no-margin-top col-md-12 no-margin-bottom">
            <h4 className="text-center">Your purchase is complete!</h4>
            <button className="btn btn-black btn-black-center" type="button" onClick={this.onViewReceipt}>View Receipt</button>
          </div>
          <div className="no-margin-top no-padding">
            <a href="/best"><img src={bestSellers} alt="Best sellers" className="checkout-img no-padding" /></a>
            <a href="/past"><img src={pastOrders} alt="Past orders" className="checkout-img no-padding" /></a>
          </div>
        </div>
      </div>
    );
  }