Skip to content

Commit

Permalink
Product shelf POC
Browse files Browse the repository at this point in the history
Signed-off-by: Marcos Candeia <[email protected]>
  • Loading branch information
mcandeia committed Apr 6, 2023
1 parent 8e5cf63 commit c686706
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
8 changes: 1 addition & 7 deletions schemas.gen.json
Original file line number Diff line number Diff line change
Expand Up @@ -2605,10 +2605,6 @@
"ZGVjby1zaXRlcy9mYXNoaW9uL2NvbXBvbmVudHMvcHJvZHVjdC9Qcm9kdWN0U2hlbGYudHN4@Props": {
"type": "object",
"properties": {
"title": {
"type": "string",
"title": "Title"
},
"itemsPerPage": {
"type": [
"number",
Expand All @@ -2617,9 +2613,7 @@
"title": "Items Per Page"
}
},
"required": [
"title"
],
"required": [],
"title": "Props"
},
"ZGVjby1zaXRlcy9mYXNoaW9uL3NlY3Rpb25zL1Z0ZXhQcm9kdWN0U2hlbGYudHN4@Props&Props": {
Expand Down
4 changes: 2 additions & 2 deletions sections/VtexProductShelf.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ export async function getProps(
unknown,
LiveConfig<LoaderProps, StateVTEX>
>,
): Promise<Pick<ProductShelfProps, "products">> {
): Promise<Pick<ProductShelfProps, "products" | "title">> {
const { data: products } = await loader(request, ctx, ctx.state.$live);
return { products };
return { products, title: "Marcos Candeia" };
}

export default ProductShelfSection;

0 comments on commit c686706

Please sign in to comment.