From 219a3bb6c72670ec8b0a3739e078129703e81012 Mon Sep 17 00:00:00 2001 From: Rafi Arrafif Date: Mon, 14 Jul 2025 15:02:29 +0700 Subject: [PATCH] :recycle: create dinamic 3rd auth provider --- .../login/loginCard/ContinueWithProviders.tsx | 49 ++++++++++++------- 1 file changed, 32 insertions(+), 17 deletions(-) diff --git a/widgets/login/loginCard/ContinueWithProviders.tsx b/widgets/login/loginCard/ContinueWithProviders.tsx index 6e9061c..d57b3c9 100644 --- a/widgets/login/loginCard/ContinueWithProviders.tsx +++ b/widgets/login/loginCard/ContinueWithProviders.tsx @@ -3,25 +3,40 @@ import { Icon } from "@iconify/react"; import React from "react"; const ContinueWithProviders = () => { + // set to true if there are other providers coming soon + const comingSoonProviders: boolean = true; + + // Provider for third-party auth + const oAuthProviders = [ + { + name: "Google", + icon: "logos:google-icon", + }, + { + name: "Discord", + icon: "logos:discord-icon", + }, + ]; + return (
- - - + {oAuthProviders.map((provider) => { + return ( + + ); + })} + + {comingSoonProviders && ( + + )}
); };