From ca957ee6db4f20f7b0c89fe172b2b2f9d446cdb8 Mon Sep 17 00:00:00 2001 From: David Edler Date: Wed, 31 Jan 2024 12:45:03 +0100 Subject: [PATCH] feat: add fallback logo for identity providers Signed-off-by: David Edler --- ui/components/NodeInputSubmit.tsx | 14 ++++++-------- ui/public/logos/Fallback.svg | 3 +++ 2 files changed, 9 insertions(+), 8 deletions(-) create mode 100644 ui/public/logos/Fallback.svg diff --git a/ui/components/NodeInputSubmit.tsx b/ui/components/NodeInputSubmit.tsx index 30312746d..16635d991 100644 --- a/ui/components/NodeInputSubmit.tsx +++ b/ui/components/NodeInputSubmit.tsx @@ -26,7 +26,7 @@ export const NodeInputSubmit: FC = ({ if (value.toLowerCase().startsWith("ping")) { return "logos/Ping.svg"; } - return ""; + return "logos/Fallback.svg"; }; const label = getNodeLabel(node); @@ -47,13 +47,11 @@ export const NodeInputSubmit: FC = ({ > {isProvider ? ( <> - {image && ( - {`${provider} - )} + {`${provider} Sign in with {label} ) : ( diff --git a/ui/public/logos/Fallback.svg b/ui/public/logos/Fallback.svg new file mode 100644 index 000000000..240024ebd --- /dev/null +++ b/ui/public/logos/Fallback.svg @@ -0,0 +1,3 @@ + + +