index.js 900 Bytes
import React from "react";
import Layout from "../../../components/layout/Layout";
import { wrapper } from "../../../redux/store";
import OrderListing from "../../../components/vendor/OrderListing";
import Sidebar from "../../../components/layout/VendorDashboardSidebar";
// import { loadUser } from "../redux/actions/userActions";
// import { wrapper } from "../redux/store";

const OrderListingPage = () => {
  return (
    <Layout>
      <div className="sidebarContainer">
        <Sidebar />
        <div className="content">
          <OrderListing />
        </div>
      </div>
    </Layout>
  );
};

export default OrderListingPage;
/** For server side rendering */
export const getServerSideProps = wrapper.getServerSideProps(store => async ({ req, query }) => {
  // Get the menu data.

  // get the locations data.
  // await store.dispatch(loadUser());

  return {
    props: {}
  };
});