diff --git a/src/components/@shared/FormFields/FilesInput/Info.module.css b/src/components/@shared/FormFields/FilesInput/Info.module.css index a9a95d6d8..c8687873d 100644 --- a/src/components/@shared/FormFields/FilesInput/Info.module.css +++ b/src/components/@shared/FormFields/FilesInput/Info.module.css @@ -31,6 +31,11 @@ padding-right: calc(var(--spacer) / 2); } +.hideUrl { + filter: blur(0.2rem); + user-select: none; +} + .warning { margin-top: calc(var(--spacer) / 3); margin-left: 0; diff --git a/src/components/@shared/FormFields/FilesInput/Info.tsx b/src/components/@shared/FormFields/FilesInput/Info.tsx index 2f1e8b782..6f73d9b90 100644 --- a/src/components/@shared/FormFields/FilesInput/Info.tsx +++ b/src/components/@shared/FormFields/FilesInput/Info.tsx @@ -15,9 +15,13 @@ export default function FileInfo({ ? cleanupContentType(file.contentType) : null + const hideUrl = file.type === 'hidden' || false + return ( -
-

{file.url}

+
+

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