feat: add activate warranty to order details page

Signed-off-by: Chloe <pinkcloudvnn@gmail.com>
This commit is contained in:
Chloe
2024-06-26 16:35:18 +07:00
parent d801de0cf1
commit 7f4fa09027
11 changed files with 71 additions and 27 deletions

View File

@@ -1,5 +1,5 @@
import customerAddress from './customer-address';
import orderCard from './order-card';
import orderCard from './order';
const customerDetailsFragment = /* GraphQL */ `
${customerAddress}

View File

@@ -28,4 +28,19 @@ const orderCard = /* GraphQL */ `
${lineItemFragment}
`;
export const orderMetafields = /* GraphQL */ `
fragment OrderMetafield on Order {
id
warrantyStatus: metafield(namespace: "custom", key: "warranty_status") {
value
}
warrantyActivationDeadline: metafield(
namespace: "custom"
key: "warranty_activation_deadline"
) {
value
}
}
`;
export default orderCard;