Blame view

pages/vendor/enquiries/index.js 1015 Bytes
1 2 3 4 5
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";
Chetan committed
6
import { GenericLayout } from "../../../components/layout/Generics/GenericLayout";
7 8 9
// import { loadUser } from "../redux/actions/userActions";
// import { wrapper } from "../redux/store";

jaymehta committed
10 11
const OrderListingPage = () => {
  return (
Chetan committed
12 13 14 15
    <GenericLayout>
      {/* <div className="sidebarContainer">
        <Sidebar /> */}
        <div className="w-100 p-5">
jaymehta committed
16 17
          <OrderListing />
        </div>
Chetan committed
18 19
      {/* </div> */}
    </GenericLayout>
jaymehta committed
20
  );
21 22
};

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

jaymehta committed
28 29
  // get the locations data.
  // await store.dispatch(loadUser());
30

jaymehta committed
31 32 33
  return {
    props: {}
  };
34
});