fix ui style

This commit is contained in:
2026-05-21 11:59:02 +07:00
parent 22e66ce493
commit f84d0e3726
51 changed files with 1035 additions and 347 deletions
@@ -2,6 +2,7 @@
import { useState } from "react";
import { useRouter } from "next/navigation";
import { Check } from "lucide-react";
import { retryEmailJobAction, resendEmailAction } from "@/features/email/actions";
const BTN_CLS =
@@ -85,9 +86,18 @@ export function ResendEmailButton({
type="button"
onClick={handleResend}
disabled={loading || done}
className={BTN_CLS}
className={`${BTN_CLS} inline-flex items-center gap-1`}
>
{loading ? "Mengirim…" : done ? "✓ Terkirim" : "Resend"}
{loading ? (
"Mengirim…"
) : done ? (
<>
<Check size={12} strokeWidth={2.5} aria-hidden />
Terkirim
</>
) : (
"Resend"
)}
</button>
{error && (
<p className="mt-1 max-w-[200px] text-[10px] text-red-600">{error}</p>