This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
my payload: | |
{ | |
is_demo: true, | |
intent: 'sale', | |
contract: { id: 'GCR_3HF0EBJ8CHXM67H76MJDMP99W02AOX' }, | |
customer: { | |
contact: { | |
forename: 'acc1_adi', | |
surname: 'acc1_adi', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useState } from "react" | |
import { graphql } from 'gatsby' | |
import Layout from "../components/layout" | |
import SEO from "../components/seo" | |
import styled, { css } from "styled-components" } | |
export default ({ data }) => { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const path = require(`path`) | |
const { createFilePath } = require(`gatsby-source-filesystem`) | |
exports.createPages = ({ graphql, actions }) => { | |
const { createPage } = actions | |
return new Promise((resolve, reject) => { | |
graphql(` | |
{ | |
allDatoCmsProduct { | |
edges { |