Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(examples): upgrade Stripe example #41550

Merged
merged 1 commit into from Oct 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/with-stripe-typescript/components/Cart.tsx
@@ -1,5 +1,5 @@
import React, { ReactNode } from 'react'
import { CartProvider } from 'use-shopping-cart/react'
import { CartProvider } from 'use-shopping-cart'
import * as config from '../config'

const Cart = ({ children }: { children: ReactNode }) => (
Expand Down
Expand Up @@ -2,7 +2,7 @@ import React, { useState, useEffect } from 'react'

import StripeTestCards from '../components/StripeTestCards'

import { useShoppingCart } from 'use-shopping-cart/react'
import { useShoppingCart } from 'use-shopping-cart'
import { fetchPostJSON } from '../utils/api-helpers'

const CartSummary = () => {
Expand Down
2 changes: 1 addition & 1 deletion examples/with-stripe-typescript/components/ClearCart.tsx
@@ -1,5 +1,5 @@
import { useEffect } from 'react'
import { useShoppingCart } from 'use-shopping-cart/react'
import { useShoppingCart } from 'use-shopping-cart'

export default function ClearCart() {
const { clearCart } = useShoppingCart()
Expand Down
2 changes: 1 addition & 1 deletion examples/with-stripe-typescript/components/Products.tsx
@@ -1,6 +1,6 @@
import products from '../data/products'
import { formatCurrencyString } from 'use-shopping-cart'
import { useShoppingCart } from 'use-shopping-cart/react'
import { useShoppingCart } from 'use-shopping-cart'

const Products = () => {
const { addItem, removeItem } = useShoppingCart()
Expand Down
27 changes: 14 additions & 13 deletions examples/with-stripe-typescript/package.json
Expand Up @@ -6,22 +6,23 @@
"start": "next start"
},
"dependencies": {
"@stripe/react-stripe-js": "1.7.0",
"@stripe/stripe-js": "1.22.0",
"micro": "^9.3.4",
"@stripe/react-stripe-js": "1.13.0",
"@stripe/stripe-js": "1.42.0",
"micro": "^9.4.1",
"micro-cors": "^0.1.1",
"next": "latest",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"stripe": "8.200.0",
"swr": "^0.1.16",
"use-shopping-cart": "3.0.5"
"react": "^18.2.0",
"react-dom": "^18.2.0",
"stripe": "10.14.0",
"swr": "^1.3.0",
"use-shopping-cart": "3.1.2",
"redux": "4.2.0"
},
"devDependencies": {
"@types/micro": "^7.3.3",
"@types/micro-cors": "^0.1.0",
"@types/node": "^13.1.2",
"@types/react": "^16.9.17",
"typescript": "4.5.5"
"@types/micro": "^7.3.7",
"@types/micro-cors": "^0.1.2",
"@types/node": "^18.11.2",
"@types/react": "^18.0.21",
"typescript": "4.8.4"
}
}