Skip to content

Commit

Permalink
feat: add react 18 support
Browse files Browse the repository at this point in the history
  • Loading branch information
kiiran committed Jul 23, 2022
1 parent 4f88833 commit 68d27cd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@ import React, { useEffect, useState } from 'react'
import { WebMonetizationContext } from './context'
import { addMonetizationEventListener } from './utils/addMonetizationEventListener'

export const WebMonetizationProvider: React.FC = ({ children }) => {
type WebMonetizationProviderProps = {
children: React.ReactNode
}

export const WebMonetizationProvider = ({
children,
}: WebMonetizationProviderProps): JSX.Element => {
const [state, setState] = useState<MonetizationState>('pending')

useEffect(() => {
Expand Down

0 comments on commit 68d27cd

Please sign in to comment.