WIP Vendors list table + order parts.

This commit is contained in:
Patrick Fic
2020-02-13 14:05:26 -08:00
parent 70259eb0d4
commit d1b14427cc
25 changed files with 745 additions and 11 deletions

View File

@@ -40,6 +40,9 @@ const OwnersDetailContainer = lazy(() =>
import("../owners-detail/owners-detail.page.container")
);
const ShopPage = lazy(() => import("../shop/shop.page.component"));
const ShopVendorPageContainer = lazy(() =>
import("../shop-vendor/shop-vendor.page.container")
);
const { Header, Content, Footer } = Layout;
@@ -118,6 +121,11 @@ export default function Manage({ match }) {
/>
<Route exact path={`${match.path}/shop/`} component={ShopPage} />
<Route
exact
path={`${match.path}/shop/vendors`}
component={ShopVendorPageContainer}
/>
</Suspense>
</ErrorBoundary>
</Content>

View File

@@ -0,0 +1,10 @@
import React from "react";
import VendorsListContainer from "../../components/vendors-list/vendors-list.container";
export default function ShopVendorPageComponent({ selectedVendorState }) {
return (
<div>
<VendorsListContainer selectedVendorState={selectedVendorState} />
</div>
);
}

View File

@@ -0,0 +1,17 @@
import React, { useEffect, useState } from "react";
import { useTranslation } from "react-i18next";
import ShopVendorPageComponent from "./shop-vendor.page.component";
export default function ShopVendorPageContainer() {
const { t } = useTranslation();
useEffect(() => {
document.title = t("titles.shop_vendors");
}, [t]);
const selectedVendorState = useState({});
return (
<div>
<ShopVendorPageComponent selectedVendorState={selectedVendorState} />
</div>
);
}