Hide expires on message if never expires is selected (#12723)

This commit is contained in:
Patrick Arminio 2023-12-11 18:15:56 +01:00 committed by GitHub
parent 795aaca64f
commit a20179727b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -202,10 +202,10 @@ export default function ApiKeyDialogForm({
);
}}
/>
<span className="text-subtle mt-2 text-xs">
{!watchNeverExpires && <span className="text-subtle mt-2 text-xs">
{t("api_key_expires_on")}
<span className="font-bold"> {dayjs(expiryDate).format("DD-MM-YYYY")}</span>
</span>
</span>}
</div>
)}