diff --git a/src/components/UsersDetails.tsx/index.tsx b/src/components/UsersDetails.tsx/index.tsx index edf7c72..9b08b94 100644 --- a/src/components/UsersDetails.tsx/index.tsx +++ b/src/components/UsersDetails.tsx/index.tsx @@ -19,6 +19,7 @@ import { faCheck, faClock, faEye, + faServer, faFile, faFileCircleExclamation } from '@fortawesome/free-solid-svg-icons' @@ -40,6 +41,7 @@ export const UsersDetails = ({ meta }: UsersDetailsProps) => { signers, viewers, fileHashes, + zipUrls, signersStatus, createdAt, completedAt, @@ -100,6 +102,18 @@ export const UsersDetails = ({ meta }: UsersDetailsProps) => { return false } + /** + * Used to parse the base URL from Blossom server full path + */ + const getBaseUrl = (url: string): string => { + try { + const parsedUrl = new URL(url) + return `${parsedUrl.protocol}//${parsedUrl.host}` + } catch (error) { + return 'Invalid URL' + } + } + return submittedBy ? (
@@ -270,6 +284,19 @@ export const UsersDetails = ({ meta }: UsersDetailsProps) => { — )} + + {signedStatus} + +
+ +
+

File Servers

+ + {zipUrls.map((url) => ( + + {getBaseUrl(url)} + + ))}
) : undefined