Add bitcoin connect (#215)

* feat: add bitcoin connect

* feat: improve zap screen
This commit is contained in:
雨宮蓮
2024-06-21 14:56:10 +07:00
committed by GitHub
parent 1283432632
commit 3fbd66dece
17 changed files with 545 additions and 445 deletions

View File

@@ -81,7 +81,7 @@ export function displayLongHandle(str: string) {
const handle = split[0];
const service = split[1];
return handle.substring(0, 16) + "..." + "@" + service;
return `${handle.substring(0, 16)}...@${service}`;
}
// convert number to K, M, B, T, etc.
@@ -127,7 +127,7 @@ export function getBitcoinDisplayValues(satoshis: number) {
.reverse()
.forEach((c, index) => {
if (index > 0 && index % 3 === 0) {
res = " " + res;
res = ` ${res}`;
}
res = c + res;
});