Skip to content

Commit 4b15111

Browse files
committed
Fix Direct API access example for POS UI Extensions
1 parent 71a823e commit 4b15111

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

packages/ui-extensions/docs/surfaces/point-of-sale/staticPages/examples/direct-api-access/direct-api-access.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ import {
55
POSBlockRow,
66
DirectApiRequestBody,
77
} from '@shopify/ui-extensions/point-of-sale';
8+
import type {DirectApiRequestBody} from '@shopify/ui-extensions/point-of-sale';
89

910
async function mutateMetafield(productId: number) {
1011
const requestBody: DirectApiRequestBody = {
1112
query: `
12-
mutation MetafieldsSet($metafields: [MetafieldsSetInput!]!) {
13+
mutation MetafieldsSet($metafields: [MetafieldsSetInput!]!) {
1314
metafieldsSet(metafields: $metafields) {
1415
metafields {
1516
key

packages/ui-extensions/docs/surfaces/point-of-sale/staticPages/examples/direct-api-access/direct-api-access.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ import {
44
Text,
55
POSBlock,
66
POSBlockRow,
7-
DirectApiRequestBody,
87
} from '@shopify/ui-extensions-react/point-of-sale';
8+
import type {DirectApiRequestBody} from '@shopify/ui-extensions-react/point-of-sale';
99
import {useEffect, useState} from 'react';
1010

1111
async function mutateMetafield(productId: number) {
1212
const requestBody: DirectApiRequestBody = {
1313
query: `
14-
mutation MetafieldsSet($metafields: [MetafieldsSetInput!]!) {
14+
mutation MetafieldsSet($metafields: [MetafieldsSetInput!]!) {
1515
metafieldsSet(metafields: $metafields) {
1616
metafields {
1717
key

0 commit comments

Comments
 (0)