feat: add activate warranty form

Signed-off-by: Chloe <pinkcloudvnn@gmail.com>
This commit is contained in:
Chloe
2024-06-24 22:28:06 +07:00
parent b1782a4a28
commit b2efb59f5c
21 changed files with 470 additions and 235 deletions

View File

@@ -0,0 +1,25 @@
const lineItemFragment = /* GraphQL */ `
fragment LineItem on LineItem {
title
image {
altText
height
url
width
}
price {
amount
currencyCode
}
quantity
sku
totalPrice {
amount
currencyCode
}
variantTitle
id
}
`;
export default lineItemFragment;

View File

@@ -1,9 +1,12 @@
import lineItemFragment from './line-item';
const orderCard = /* GraphQL */ `
fragment OrderCard on Order {
id
number
name
processedAt
createdAt
financialStatus
fulfillments(first: 1) {
edges {
@@ -17,20 +20,12 @@ const orderCard = /* GraphQL */ `
currencyCode
}
lineItems(first: 20) {
edges {
node {
title
quantity
image {
altText
height
url
width
}
}
nodes {
...LineItem
}
}
}
${lineItemFragment}
`;
export default orderCard;