- Fix syntax error in Checkout.ts (extra semicolon) - Update NewHero.tsx to use Saleor types and store - Update page.tsx to use Saleor getProducts - Add Saleor API domain to next.config.ts images config
21 lines
422 B
TypeScript
21 lines
422 B
TypeScript
import { gql } from "@apollo/client";
|
|
import { CHECKOUT_FRAGMENT } from "../fragments/Checkout";
|
|
|
|
export const GET_CHECKOUT = gql`
|
|
query GetCheckout($token: UUID!) {
|
|
checkout(token: $token) {
|
|
...CheckoutFragment
|
|
}
|
|
}
|
|
${CHECKOUT_FRAGMENT}
|
|
`;
|
|
|
|
export const GET_CHECKOUT_BY_ID = gql`
|
|
query GetCheckoutById($id: ID!) {
|
|
checkout(id: $id) {
|
|
...CheckoutFragment
|
|
}
|
|
}
|
|
${CHECKOUT_FRAGMENT}
|
|
`;
|