fix ui style
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user