feat: update default column informations

This commit is contained in:
2024-03-21 14:53:08 +07:00
parent cb565ff35b
commit dd7155a3a6
19 changed files with 90 additions and 44 deletions

View File

@@ -65,6 +65,14 @@ export function displayNpub(pubkey: string, len: number) {
);
}
export function displayLongHandle(str: string) {
const split = str.split("@");
const handle = split[0];
const service = split[1];
return handle.substring(0, 16) + "..." + "@" + service;
}
// convert number to K, M, B, T, etc.
export const compactNumber = Intl.NumberFormat("en", { notation: "compact" });