Skip to content

Commit

Permalink
Added cms config for 404 and home pages.
Browse files Browse the repository at this point in the history
  • Loading branch information
paales committed Feb 17, 2025
1 parent 40d17f7 commit 31eb595
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { CountryRegionsDocument } from '@graphcommerce/magento-store'
import { Button, Form, FormActions, FormDivider, FormRow } from '@graphcommerce/next-ui'
import { Trans } from '@lingui/react'
import type { SxProps, Theme } from '@mui/material'
import { GetBillingAddressDocument } from '../../graphql/queries/GetBillingAddress.gql'
import { GetBillingAddressDocument } from '../../graphql'
import { useCartQuery, useFormGqlMutationCart } from '../../hooks'

export type EditBillingAddressFormProps = { sx?: SxProps<Theme> }
Expand Down
10 changes: 10 additions & 0 deletions packages/magento-cart/graphql/fragments/CartBillingAddress.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
fragment CartBillingAddress on Cart {
id
__typename
billing_address {
...CartAddress
}
shipping_addresses {
...CartAddress
}
}
3 changes: 3 additions & 0 deletions packages/magento-cart/graphql/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export * from './fragments/CartItemCountChanged.gql'
export * from './fragments/CartBillingAddress.gql'
export * from './queries/GetBillingAddress.gql'
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
query GetBillingAddress($cartId: String!) {
cart(cart_id: $cartId) {
...CartBillingAddress
}
}
5 changes: 5 additions & 0 deletions packages/magento-cms/graphql/CmsConfig.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
fragment CmsConfig on StoreConfig @inject(into: ["StoreConfigFragment"]) {
cms_home_page
cms_no_cookies
cms_no_route
}

0 comments on commit 31eb595

Please sign in to comment.