Skip to content

Instantly share code, notes, and snippets.

View adiusz's full-sized avatar
🌳

Adam Leszczyński adiusz

🌳
View GitHub Profile
my payload:
{
is_demo: true,
intent: 'sale',
contract: { id: 'GCR_3HF0EBJ8CHXM67H76MJDMP99W02AOX' },
customer: {
contact: {
forename: 'acc1_adi',
surname: 'acc1_adi',
import React, { useState } from 'react';
import { graphql, Link, useStaticQuery } from "gatsby"
import styled from 'styled-components';
import Img from 'gatsby-image';
import AniLink from "gatsby-plugin-transition-link/AniLink"
export default () => {
const data = useStaticQuery(graphql`
query NavbarQueryPL {
datoCmsHomepage {
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 }) => {
@adiusz
adiusz / gatsby-node
Created June 24, 2020 10:43
gatby-node
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 {