From c2e412f41f641e22a0f0cb49e1dcc58ca3bda6e9 Mon Sep 17 00:00:00 2001 From: Urcodingbuddy Date: Sun, 20 Oct 2024 19:49:00 +0530 Subject: [PATCH 1/2] Re-Added svg in pages and removed svg.tsx for fix --- apps/KrakenUser-app/app/auth/signin/page.tsx | 18 +++++++++--------- apps/KrakenUser-app/app/auth/signup/page.tsx | 18 +++++++++--------- packages/ui/src/gitBtn.tsx | 16 ---------------- packages/ui/src/googleBtn.tsx | 17 ----------------- 4 files changed, 18 insertions(+), 51 deletions(-) delete mode 100644 packages/ui/src/gitBtn.tsx delete mode 100644 packages/ui/src/googleBtn.tsx diff --git a/apps/KrakenUser-app/app/auth/signin/page.tsx b/apps/KrakenUser-app/app/auth/signin/page.tsx index 696091c..9a6fd2e 100644 --- a/apps/KrakenUser-app/app/auth/signin/page.tsx +++ b/apps/KrakenUser-app/app/auth/signin/page.tsx @@ -5,8 +5,8 @@ import { AuthInputs } from '@repo/ui/AuthInputs' import Link from 'next/link' import { BackgroundLines } from '../../../@/components/ui/background-lines' import { Button } from '@repo/ui/button' -// import { GoogleBtn } from '@repo/ui/GoogleBtn' -// import { Gitbtn } from '@repo/ui/GitBtn' +import { GoogleBtn } from '@repo/ui/GoogleBtn' +import { Gitbtn } from '@repo/ui/GitBtn' import { Loader } from '@repo/ui/loader' import { useSignIn } from '../../lib/utils/handleSignIn' @@ -22,9 +22,9 @@ export default function SignIn() { handleSignIn(email, password, setError, setLoading); }; - const handleUnavailableSignIn = (provider: any) => { - setError(`${provider} Sign-In is Currently Unavailable!`); - }; + // const handleUnavailableSignIn = (provider: any) => { + // setError(`${provider} Sign-In is Currently Unavailable!`); + // }; return (
@@ -35,10 +35,10 @@ export default function SignIn() {
- {/* - */} - handleUnavailableSignIn("Google")} /> - handleUnavailableSignIn("GitHub")} /> + + + {/* handleUnavailableSignIn("Google")} /> + handleUnavailableSignIn("GitHub")} /> */}

or

{ - setError(`${provider} Sign-In is Currently Unavailable!`); - }; + // const handleUnavailableSignIn = (provider: any) => { + // setError(`${provider} Sign-In is Currently Unavailable!`); + // }; return ( @@ -63,10 +63,10 @@ export default function SignUp() {
- {/* */} - {/* */} - handleUnavailableSignIn("Google")} /> - handleUnavailableSignIn("GitHub")} /> + + + {/* handleUnavailableSignIn("Google")} /> + handleUnavailableSignIn("GitHub")} /> */}

or

{ - return ( - - ) -} - -function GitHubSvg() { - return ( - - ) - } \ No newline at end of file diff --git a/packages/ui/src/googleBtn.tsx b/packages/ui/src/googleBtn.tsx deleted file mode 100644 index f4b53c9..0000000 --- a/packages/ui/src/googleBtn.tsx +++ /dev/null @@ -1,17 +0,0 @@ -import { signIn } from "next-auth/react" -export const GoogleBtn = () =>{ - return( - - ) -} - - -export function GoogleSvg() { - return ( - - ) - } \ No newline at end of file From f761d9457b431ba9bc7d918caac21ec67b80ef42 Mon Sep 17 00:00:00 2001 From: Urcodingbuddy Date: Sun, 20 Oct 2024 19:51:02 +0530 Subject: [PATCH 2/2] re Added Svg.tsx --- packages/ui/src/GitBtn.tsx | 16 ++++++++++++++++ packages/ui/src/GoogleBtn.tsx | 17 +++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 packages/ui/src/GitBtn.tsx create mode 100644 packages/ui/src/GoogleBtn.tsx diff --git a/packages/ui/src/GitBtn.tsx b/packages/ui/src/GitBtn.tsx new file mode 100644 index 0000000..fec316e --- /dev/null +++ b/packages/ui/src/GitBtn.tsx @@ -0,0 +1,16 @@ +import { signIn } from "next-auth/react" +export const Gitbtn = () =>{ + return ( + + ) +} + +function GitHubSvg() { + return ( + + ) + } \ No newline at end of file diff --git a/packages/ui/src/GoogleBtn.tsx b/packages/ui/src/GoogleBtn.tsx new file mode 100644 index 0000000..f4b53c9 --- /dev/null +++ b/packages/ui/src/GoogleBtn.tsx @@ -0,0 +1,17 @@ +import { signIn } from "next-auth/react" +export const GoogleBtn = () =>{ + return( + + ) +} + + +export function GoogleSvg() { + return ( + + ) + } \ No newline at end of file