Skip to content

Commit

Permalink
Add comment explaining inspiration for Stripe/Checkout.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
0xNeshi committed Jan 12, 2024
1 parent 3525562 commit 4c83b7c
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import LoadText from "components/LoadText";
import LoaderRing from "components/LoaderRing";
import { appRoutes } from "constants/routes";

// Code inspired by React Stripe.js docs, see:
// https://stripe.com/docs/stripe-js/react#useelements-hook
export default function Checkout({ onBack }: { onBack: () => void }) {
const stripe = useStripe();
const elements = useElements();
Expand Down

0 comments on commit 4c83b7c

Please sign in to comment.