-
{preset.name}
+
+ {preset.id === 'netlify' && }
+ {preset.id === 'vercel' && }
+
{preset.name}
+
{preset.apiKeyURL && !isOAuthConfigured && (
) : (
<>
- {preset.type === 'netlify' && (
-
- )}
- {preset.type === 'vercel' && (
-
- )}
+ {preset.id === 'netlify' &&
}
+ {preset.id === 'vercel' &&
}
Connect to {preset.name}
diff --git a/src/pages/GitSettings.tsx b/src/pages/GitSettings.tsx
index a414c705..73fde155 100644
--- a/src/pages/GitSettings.tsx
+++ b/src/pages/GitSettings.tsx
@@ -1,7 +1,8 @@
import { useState } from 'react';
import { useTranslation } from 'react-i18next';
-import { Check, GitBranch, ArrowLeft, Github, Trash2 } from 'lucide-react';
+import { Check, GitBranch, ArrowLeft, Trash2 } from 'lucide-react';
import { Button } from '@/components/ui/button';
+import { SiGithub, SiGitlab } from '@icons-pack/react-simple-icons';
import { Input } from '@/components/ui/input';
import { Label } from '@/components/ui/label';
import { Badge } from '@/components/ui/badge';
@@ -212,7 +213,11 @@ export function GitSettings() {
{availablePresets.map((preset) => (
-
{preset.name}
+
+ {preset.id === 'github' && }
+ {preset.id === 'gitlab' && }
+
{preset.name}
+
{preset.tokenURL && (preset.id !== 'github' || !isOAuthConfigured) && (
) : (
<>
-
+
Connect to GitHub