Skip to content

Commit

Permalink
chore(examples): upgrade Stripe example (#41550)
Browse files Browse the repository at this point in the history
  • Loading branch information
balazsorban44 committed Oct 19, 2022
1 parent 2d1f729 commit 9ac231a
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 17 deletions.
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
2 changes: 1 addition & 1 deletion examples/with-stripe-typescript/components/CartSummary.tsx
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"
}
}

0 comments on commit 9ac231a

Please sign in to comment.