Skip to content

Commit

Permalink
Fix RecaptchaContext.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
aelassas committed Dec 28, 2024
1 parent 3bd4333 commit 3d74c2f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/src/context/RecaptchaContext.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/* eslint-disable react-refresh/only-export-components */
import React, { ReactNode, createContext, use, useMemo } from 'react'
import React, { ReactNode, createContext, useContext, useMemo } from 'react'
import useReCaptcha from '@/hooks/useRecaptcha'

// Create context
Expand All @@ -25,4 +24,5 @@ export const RecaptchaProvider = ({ children }: RecaptchaProviderProps) => {
}

// Create a custom hook to access context
export const useRecaptchaContext = () => use(RecaptchaContext)
// eslint-disable-next-line react-refresh/only-export-components
export const useRecaptchaContext = () => useContext(RecaptchaContext)

0 comments on commit 3d74c2f

Please sign in to comment.