From f62b2345f463695ef0f8f79830cd76b6e0332821 Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Sat, 13 Jan 2024 10:35:22 +0700
Subject: Refactor src migrate folder

---
 src-migrate/common/components/elements/ReCaptcha.tsx | 17 -----------------
 1 file changed, 17 deletions(-)
 delete mode 100644 src-migrate/common/components/elements/ReCaptcha.tsx

(limited to 'src-migrate/common/components/elements/ReCaptcha.tsx')

diff --git a/src-migrate/common/components/elements/ReCaptcha.tsx b/src-migrate/common/components/elements/ReCaptcha.tsx
deleted file mode 100644
index 1bc31d90..00000000
--- a/src-migrate/common/components/elements/ReCaptcha.tsx
+++ /dev/null
@@ -1,17 +0,0 @@
-import ReCAPTCHA, { ReCAPTCHAProps } from "react-google-recaptcha"
-
-const GOOGLE_RECAPTCHA_KEY = process.env.NEXT_PUBLIC_RECAPTCHA_GOOGLE || ''
-
-type Props = Omit<ReCAPTCHAProps, 'sitekey'> & {
-  sitekey?: string;
-}
-
-const ReCaptcha = (props: Props) => {
-  const { sitekey, ...rest } = props
-
-  return (
-    <ReCAPTCHA sitekey={sitekey || GOOGLE_RECAPTCHA_KEY} {...rest} />
-  )
-}
-
-export default ReCaptcha
\ No newline at end of file
-- 
cgit v1.2.3

