Skip to content

Commit

Permalink
Fix lint and check 0 62 7 (#938)
Browse files Browse the repository at this point in the history
* Add splitItem on type

* Lint
  • Loading branch information
matheusgr authored Oct 16, 2024
1 parent 75165bd commit 1430d61
Show file tree
Hide file tree
Showing 5 changed files with 3,748 additions and 3,674 deletions.
4 changes: 3 additions & 1 deletion shopify/loaders/ProductListingPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,9 @@ const loader = async (
seo: {
title: collectionTitle || "",
description: collectionDescription || "",
canonical: `${url.origin}${url.pathname}${page >= 1 ? `?page=${page}` : ""}`,
canonical: `${url.origin}${url.pathname}${
page >= 1 ? `?page=${page}` : ""
}`,
},
};
};
Expand Down
8 changes: 4 additions & 4 deletions shopify/utils/transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ export const toBreadcrumbItem = ({
position,
item,
}: {
name: string,
position: number,
item: string,
name: string;
position: number;
item: string;
}): ListItem => ({
"@type": "ListItem",
name: decodeURI(name),
Expand Down Expand Up @@ -106,7 +106,7 @@ export const toBreadcrumbList = (
position: 2,
item: getPath(product, sku),
}),
]
];
}

const data: BreadcrumbList = {
Expand Down
1 change: 1 addition & 0 deletions vtex/utils/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ export interface VTEXCommerceStable {
"POST /api/checkout/pub/orderForm/:orderFormId/items/update": {
response: OrderForm;
body: {
noSplitItem?: boolean;
orderItems: Array<{
quantity: number;
index: number;
Expand Down
Loading

0 comments on commit 1430d61

Please sign in to comment.