mirror of
https://github.com/Qortal/qortal-ui.git
synced 2025-07-30 13:41:44 +00:00
Continued Chat UI Refactor
This commit is contained in:
8
qortal-ui-plugins/plugins/utils/cropAddress.js
Normal file
8
qortal-ui-plugins/plugins/utils/cropAddress.js
Normal file
@@ -0,0 +1,8 @@
|
||||
export function cropAddress(string = "", range = 5) {
|
||||
const [start, end] = [
|
||||
string?.substring(0, range),
|
||||
string?.substring(string?.length - range, string?.length),
|
||||
//
|
||||
];
|
||||
return start + "..." + end;
|
||||
}
|
Reference in New Issue
Block a user