...
Task 2: Update the graphql after changes in the CMS repo
Update the package.json with the new version for the Intl-whitelabel-cms
Add the new interfaces in the
add-on-section.graphql
Path:
src/queries/sanity/fragments/add-on-section.graphql
Code Block language graphql fragment AddOnSectionFragment on AddOnSection { ... showSectionItemsOnCart sectionItemsServiceModes { pickUpServiceMode driveThruServiceMode curbsideServiceMode dineInServiceMode tableServiceMode } }
yarn run apollo:generate
Clear the generated file just with the needed changes
Update the Interface for the
use-feature-menu-add-on.tsx
Path:
src/hooks/use-feature-menu-add-on.tsx
Code Block language typescript export interface IAddOnSection { ..., showSectionItemsOnCart, sectionItemsServiceModes: { pickUpServiceMode: boolean, driveThruServiceMode: boolean, curbsideServiceMode: boolean, dineInServiceMode: boolean, tableServiceMode: boolean, } }
...