diff --git a/src/components/@shared/FormFields/FilesInput/Info.module.css b/src/components/@shared/FormFields/FilesInput/Info.module.css index 990e0ceed..c8687873d 100644 --- a/src/components/@shared/FormFields/FilesInput/Info.module.css +++ b/src/components/@shared/FormFields/FilesInput/Info.module.css @@ -33,6 +33,7 @@ .hideUrl { filter: blur(0.2rem); + user-select: none; } .warning { diff --git a/src/components/@shared/FormFields/FilesInput/Info.tsx b/src/components/@shared/FormFields/FilesInput/Info.tsx index d156ff3b1..6f73d9b90 100644 --- a/src/components/@shared/FormFields/FilesInput/Info.tsx +++ b/src/components/@shared/FormFields/FilesInput/Info.tsx @@ -6,21 +6,21 @@ import { FileInfo as FileInfoData } from '@oceanprotocol/lib' export default function FileInfo({ file, - handleClose, - hideUrl + handleClose }: { file: FileInfoData handleClose(): void - hideUrl?: boolean }): ReactElement { const contentTypeCleaned = file.contentType ? cleanupContentType(file.contentType) : null + const hideUrl = file.type === 'hidden' || false + return (

- {file.url} + {hideUrl ? 'https://oceanprotocol/placeholder' : file.url}