I hereby claim:
- I am albionahoti on github.
- I am hoti5 (https://keybase.io/hoti5) on keybase.
- I have a public key ASDAS744Bw6WJc4SwzRdgtY6kEEAagIkWvRuBO1kPcZqzQo
To claim this, I am signing this object:
import Stripe from 'stripe' | |
const stripe = new Stripe( | |
'STRIPE_SECRET_KEY_HERE' | |
) | |
export default async (req, res) => { | |
if (req.method === 'POST') { | |
try { | |
const { amount, paymentIntentId } = JSON.parse(req.body) |
import '../assets/antd-custom.less'; | |
// Layout Component | |
import LayoutComponent from '../components/Layout'; | |
// React Context | |
import { CartProvider } from '../context/Context'; | |
// Apollo | |
import { ApolloProvider } from '@apollo/client'; | |
import { useApollo } from '../lib/apolloClient'; |
import { useMemo } from 'react' | |
import { ApolloClient, HttpLink, InMemoryCache } from '@apollo/client' | |
let apolloClient | |
function createApolloClient() { | |
return new ApolloClient({ | |
ssrMode: typeof window === 'undefined', | |
link: new HttpLink({ | |
uri: process.env.CONTENT_DELIVERY_API_URL, |
// Apollo | |
import { useQuery, gql } from '@apollo/client'; | |
// Ant design | |
import { Row, Col } from 'antd'; | |
// Components | |
import ProductCard from './Product'; | |
export const QUERY = gql` |
// Ant design | |
import { Button, Form } from 'antd'; | |
// React context | |
import { CartContext, TotalContext } from '../context/Context'; | |
import { Col, Row } from 'antd'; | |
import React, { useContext, useState } from 'react'; | |
// Components | |
import { BillingDetailsFields } from './BillingDetailsField'; | |
// styled components |
import React, { useState } from 'react'; | |
// Ant Design | |
import { Layout } from 'antd'; | |
const { Content, Footer } = Layout; | |
// Header | |
import HeaderComponent from './Header'; | |
// Stripe |
I hereby claim:
To claim this, I am signing this object: