From 924d7c9f1eb2bf9fe0b90752a589b3b5cc2f86ef Mon Sep 17 00:00:00 2001 From: santiago-ab Date: Wed, 11 Dec 2024 18:11:11 -0400 Subject: [PATCH 1/5] fix(): lint --- src/components/LoginForm.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/LoginForm.tsx b/src/components/LoginForm.tsx index 94a0f33..19b0d28 100644 --- a/src/components/LoginForm.tsx +++ b/src/components/LoginForm.tsx @@ -23,9 +23,9 @@ export const LoginForm = ({loginMethods, redirectUrl, customProps}: {loginMethod try { const url = await login(provider, redirectUrl, email); if (url) { - redirect ? - window.location.href = url - : + if(redirect) + window.location.href = url; + else QRCodeModal.open(url, () => {}); } } catch (error) { From 434798784451838539ee312c84c04467bf51b0b0 Mon Sep 17 00:00:00 2001 From: santiago-ab Date: Wed, 11 Dec 2024 18:11:57 -0400 Subject: [PATCH 2/5] fix(): missin brackets --- src/components/LoginForm.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/LoginForm.tsx b/src/components/LoginForm.tsx index 19b0d28..2b57a93 100644 --- a/src/components/LoginForm.tsx +++ b/src/components/LoginForm.tsx @@ -23,10 +23,11 @@ export const LoginForm = ({loginMethods, redirectUrl, customProps}: {loginMethod try { const url = await login(provider, redirectUrl, email); if (url) { - if(redirect) + if(redirect){ window.location.href = url; - else + }else{ QRCodeModal.open(url, () => {}); + } } } catch (error) { setErrorText((error as Error).message); From 96e8f86afcf1108e19d7da6dd4b2d62258d59cd3 Mon Sep 17 00:00:00 2001 From: santiago-ab Date: Wed, 11 Dec 2024 18:12:05 -0400 Subject: [PATCH 3/5] v1.0.19 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9611802..1c9a46f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@brillionfi/waas-react-sdk", - "version": "1.0.18", + "version": "1.0.19", "main": "dist/index.js", "types": "dist/index.d.ts", "files": [ From e71acf871299544dbd9fa1295a68f21721891cc0 Mon Sep 17 00:00:00 2001 From: santiago-ab Date: Wed, 11 Dec 2024 18:14:27 -0400 Subject: [PATCH 4/5] fix(): readme --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 7437b0d..55eac10 100644 --- a/README.md +++ b/README.md @@ -61,6 +61,8 @@ If you want to personalize this login form, you can easily put your own styles o 5) `buttonStyle?: React.CSSProperties;` 6) `buttonTextStyle?: React.CSSProperties;` 7) `buttonText?: string;` + 8) `errorContainerStyle?: React.CSSProperties;` + 9) `errorTextStyle?: React.CSSProperties;` Note: you can leave some/all of these blank to have default styles From 9c1b68c9dcf3f1627caf52bfdffb254bd252ed5f Mon Sep 17 00:00:00 2001 From: santiago-ab Date: Wed, 11 Dec 2024 19:00:09 -0400 Subject: [PATCH 5/5] fix(): option logos --- src/components/LoginForm.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/LoginForm.tsx b/src/components/LoginForm.tsx index 2b57a93..c8bda10 100644 --- a/src/components/LoginForm.tsx +++ b/src/components/LoginForm.tsx @@ -45,7 +45,7 @@ export const LoginForm = ({loginMethods, redirectUrl, customProps}: {loginMethod }, { label: LoginMethods.Discord, - icon: , + icon: , disabled: false, onClick: async () => { await makeLogin(AuthProvider.DISCORD, redirectUrl, true); @@ -53,7 +53,7 @@ export const LoginForm = ({loginMethods, redirectUrl, customProps}: {loginMethod }, { label: LoginMethods.Twitter, - icon: , + icon: , disabled: false, onClick: async () => { await makeLogin(AuthProvider.TWITTER, redirectUrl, true);