feat(core): page info ui (#5729)

this PR includes the main table view in the page detail page
This commit is contained in:
Peng Xiao
2024-02-22 05:58:14 +00:00
parent 46cc0810e9
commit d97304e9eb
26 changed files with 2068 additions and 83 deletions

View File

@@ -8,10 +8,10 @@ const dateFormatter = new Intl.DateTimeFormat(undefined, {
day: 'numeric',
});
export const timestampToLocalTime = (ts: string) => {
export const timestampToLocalTime = (ts: string | number) => {
return timeFormatter.format(new Date(ts));
};
export const timestampToLocalDate = (ts: string) => {
export const timestampToLocalDate = (ts: string | number) => {
return dateFormatter.format(new Date(ts));
};