Display git provider favicon in SyncStep

This commit is contained in:
Alex Gleason committed 2025-12-24 19:20:34 -06:00
1 parent d2fd29ed86
commit 12433320b6
4 files changed
+22 -31

No files matched your search

+4 -12
View File
@@ -208,19 +208,11 @@ export function SyncStep({ projectId, remoteUrl }: SyncStepProps) {
// Check if we have a matched credential
const matchedCredential = findCredentialsForRepo(remoteUrl, settings.credentials);
if (matchedCredential) {
return {
name: matchedCredential.name,
icon: (
<ExternalFavicon
url={matchedCredential.origin}
size={16}
/>
),
};
}
return { name: remoteUrl.hostname };
return {
name: matchedCredential? matchedCredential.name : remoteUrl.hostname,
icon: <ExternalFavicon url={remoteUrl} size={16} />,
};
}, [remoteUrl, settings.credentials]);
const providerInfo = getProviderInfo();