Working on vendors favorite JSON form - issues with additional fields + rehydrating data

This commit is contained in:
Patrick Fic
2020-02-14 15:57:40 -08:00
parent 12c914affd
commit 34f6f066bc
34 changed files with 1044 additions and 69 deletions

View File

@@ -1,13 +1,19 @@
import React from "react";
import { Typography } from "antd";
import { Typography, Layout } from "antd";
import HeaderContainer from "../../components/header/header.container";
export default function LandingPage() {
const { Header, Content } = Layout;
return (
<div>
<HeaderContainer landingHeader />
<Typography.Title>Welcome to bodyshop.app.</Typography.Title>
</div>
<Layout style={{ minHeight: "100vh" }}>
<Header>
<HeaderContainer landingHeader />
</Header>
<Content className="content-container" style={{ padding: "0em 4em 4em" }}>
<Typography.Title>Welcome to bodyshop.app.</Typography.Title>
</Content>
</Layout>
);
}

View File

@@ -7,7 +7,9 @@ export default function ShopVendorPageComponent({ selectedVendorState }) {
return (
<div>
<VendorsListContainer selectedVendorState={selectedVendorState} />
<VendorsFormContainer vendor={selectedVendorState[0]} />
<VendorsFormContainer
vendorId={selectedVendorState[0] ? selectedVendorState[0].id : null}
/>
</div>
);
}