mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-11 23:46:50 +00:00
Merge branch 'dev' of https://github.com/fosrl/pangolin into dev
This commit is contained in:
@@ -546,6 +546,7 @@ export default function ResetPasswordForm({
|
||||
)}
|
||||
<Button
|
||||
type="button"
|
||||
variant="outline"
|
||||
className="w-full"
|
||||
onClick={() => {
|
||||
const email =
|
||||
|
||||
@@ -28,7 +28,7 @@ export function SettingsSectionForm({
|
||||
className?: string;
|
||||
}) {
|
||||
return (
|
||||
<div className={cn("max-w-xl space-y-4", className)}>{children}</div>
|
||||
<div className={cn("md:max-w-1/2 space-y-4", className)}>{children}</div>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -59,13 +59,14 @@ export default function CertificateStatus({
|
||||
}
|
||||
};
|
||||
|
||||
const shouldShowRefreshButton = (status: string, updatedAt: string) => {
|
||||
const shouldShowRefreshButton = (status: string, updatedAt: number) => {
|
||||
return (
|
||||
status === "failed" ||
|
||||
status === "expired" ||
|
||||
(status === "requested" &&
|
||||
updatedAt &&
|
||||
new Date(updatedAt).getTime() < Date.now() - 5 * 60 * 1000)
|
||||
new Date(updatedAt * 1000).getTime() <
|
||||
Date.now() - 5 * 60 * 1000)
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user