Skip to content
Merged
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
26 changes: 15 additions & 11 deletions apps/web/src/pages/admin/AdminSettingsPage.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { useQuery } from '@tanstack/react-query';
import { ChevronDown } from 'lucide-react';
import { useEffect, useState } from 'react';
import { toast } from 'sonner';
import type { SetupResult } from '@/api/client';
Expand Down Expand Up @@ -286,17 +287,20 @@ export default function AdminSettingsPage() {
<form onSubmit={handleSaveEmailSettings} className="space-y-4">
<div className="space-y-1.5">
<Label htmlFor="email-provider">{t('admin.provider')}</Label>
<select
id="email-provider"
value={emailProvider}
onChange={(e) =>
setEmailProvider(e.target.value as 'resend' | 'smtp')
}
className="flex h-9 w-full max-w-xs rounded-md border border-input bg-background px-3 py-1 text-sm shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring"
>
<option value="resend">Resend</option>
<option value="smtp">SMTP</option>
</select>
<div className="relative w-full max-w-xs">
<select
id="email-provider"
value={emailProvider}
onChange={(e) =>
setEmailProvider(e.target.value as 'resend' | 'smtp')
}
className="flex h-9 w-full appearance-none rounded-md border border-input bg-background px-3 py-1 pr-10 text-sm shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring"
>
<option value="resend">Resend</option>
<option value="smtp">SMTP</option>
</select>
<ChevronDown className="pointer-events-none absolute right-5 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" />
</div>
</div>

{emailProvider === 'resend' && (
Expand Down
Loading