feat: add activate warranty form

Signed-off-by: Chloe <pinkcloudvnn@gmail.com>
This commit is contained in:
Chloe
2024-06-24 22:28:06 +07:00
parent b1782a4a28
commit b2efb59f5c
21 changed files with 470 additions and 235 deletions

View File

@@ -87,3 +87,11 @@ export function parseJSON(json: any) {
function noproto(k: string, v: string) {
if (k !== '__proto__') return v;
}
export function toPrintDate(date: string) {
return new Date(date).toLocaleDateString('en-US', {
year: 'numeric',
month: 'long',
day: 'numeric'
});
}