Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add fallback logo for identity providers #220

Merged
merged 1 commit into from
Jan 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions ui/components/NodeInputSubmit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const NodeInputSubmit: FC<NodeInputProps> = ({
if (value.toLowerCase().startsWith("ping")) {
return "logos/Ping.svg";
}
return "";
return "logos/Fallback.svg";
};

const label = getNodeLabel(node);
Expand All @@ -47,13 +47,11 @@ export const NodeInputSubmit: FC<NodeInputProps> = ({
>
{isProvider ? (
<>
{image && (
<img
src={image}
alt={`${provider} logo`}
style={{ marginRight: "0.5rem" }}
/>
)}
<img
src={image}
alt={`${provider} logo`}
style={{ marginRight: "0.5rem" }}
/>
<span>Sign in with {label}</span>
</>
) : (
Expand Down
3 changes: 3 additions & 0 deletions ui/public/logos/Fallback.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading