From 449d0a90fa9e10222e189850cffc1bfebecf6440 Mon Sep 17 00:00:00 2001 From: Ben Munoz Date: Tue, 17 May 2022 15:47:11 -0400 Subject: [PATCH] fix: Removed mistakenly generated link on CID header item in filemanager --- .../account/filesManager/fileRowItem.js | 21 ++++++++++++------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/packages/website/components/account/filesManager/fileRowItem.js b/packages/website/components/account/filesManager/fileRowItem.js index 99c2311328..016165b777 100644 --- a/packages/website/components/account/filesManager/fileRowItem.js +++ b/packages/website/components/account/filesManager/fileRowItem.js @@ -73,6 +73,7 @@ const FileRowItem = props => { const statusMessages = fileRowLabels.status.tooltip; /** @type {import('react').RefObject} */ const editingNameRef = useRef(null); + const truncatedCID = useMemo(() => truncateString(cid, 5, '...', 'double'), [cid]); const statusTooltip = useMemo( () => ({ @@ -125,14 +126,18 @@ const FileRowItem = props => { {fileRowLabels.cid.label} - - {useMemo(() => truncateString(cid, 5, '...', 'double'), [cid])} - + {isHeader ? ( + {cid} + ) : ( + + {truncatedCID} + + )} {cid} {isHeader ? (