Merge "feat: update id render to support number format"
This commit is contained in:
commit
e31ee72b7e
@ -160,7 +160,7 @@ const getLinkUrl = (prefix, id) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const getIdRender = (value, copyable = true, isLink = true) => {
|
export const getIdRender = (value, copyable = true, isLink = true) => {
|
||||||
const short = (value || '').substring(0, 8);
|
const short = `${value || ''}`.substring(0, 8);
|
||||||
const shortRender = isLink ? (
|
const shortRender = isLink ? (
|
||||||
<span className="link-class">{short}</span>
|
<span className="link-class">{short}</span>
|
||||||
) : (
|
) : (
|
||||||
|
Loading…
Reference in New Issue
Block a user