1
0
mirror of https://github.com/NginxProxyManager/nginx-proxy-manager.git synced 2025-11-02 16:53:15 +03:00

Certificates react work

- renewal and download
- table columns rendering
- searching
- deleting
This commit is contained in:
Jamie Curnow
2025-10-27 18:08:37 +10:00
parent 7b5c70ed35
commit 0de26f2950
16 changed files with 381 additions and 86 deletions

View File

@@ -0,0 +1,15 @@
import cn from "classnames";
import { isPast, parseISO } from "date-fns";
import { DateTimeFormat } from "src/locale";
interface Props {
value: string;
highlightPast?: boolean;
}
export function DateFormatter({ value, highlightPast }: Props) {
const dateIsPast = isPast(parseISO(value));
const cl = cn({
"text-danger": highlightPast && dateIsPast,
});
return <span className={cl}>{DateTimeFormat(value)}</span>;
}