diff --git a/app/components/Detail/components/GeneratedMatricesTables/components/FileLocationCopy/fileLocationCopy.tsx b/app/components/Detail/components/GeneratedMatricesTables/components/FileLocationCopy/fileLocationCopy.tsx index 614106f2e..cccb0d3e0 100644 --- a/app/components/Detail/components/GeneratedMatricesTables/components/FileLocationCopy/fileLocationCopy.tsx +++ b/app/components/Detail/components/GeneratedMatricesTables/components/FileLocationCopy/fileLocationCopy.tsx @@ -1,7 +1,6 @@ import { ButtonGroupButton } from "@databiosphere/findable-ui/lib/components/common/ButtonGroup/components/ButtonGroupButton/buttonGroupButton"; import { ContentCopyIconSmall } from "@databiosphere/findable-ui/lib/components/common/CustomIcon/common/constants"; import { useFileLocation } from "@databiosphere/findable-ui/lib/hooks/useFileLocation"; -import { useLoginGuard } from "@databiosphere/findable-ui/lib/providers/loginGuard/hook"; import copy from "copy-to-clipboard"; import { useEffect } from "react"; import { ProjectMatrixView } from "../../../../../../viewModelBuilders/azul/hca-dcp/common/projectMatrixMapper/entities"; @@ -16,9 +15,6 @@ export const FileLocationCopy = ({ const { url } = projectMatrixView; const { fileUrl, isLoading, isSuccess, run } = useFileLocation(url); - // Prompt user for login before download, if required. - const { requireLogin } = useLoginGuard(); - useEffect(() => { if (fileUrl && isSuccess) { copy(fileUrl); @@ -30,7 +26,7 @@ export const FileLocationCopy = ({ action="Copy project matrix" label={} loading={isLoading} - onClick={() => requireLogin(run)} + onClick={run} /> ); }; diff --git a/app/components/Detail/components/GeneratedMatricesTables/components/FileLocationDownload/fileLocationDownload.tsx b/app/components/Detail/components/GeneratedMatricesTables/components/FileLocationDownload/fileLocationDownload.tsx index e5a77863d..341adac5b 100644 --- a/app/components/Detail/components/GeneratedMatricesTables/components/FileLocationDownload/fileLocationDownload.tsx +++ b/app/components/Detail/components/GeneratedMatricesTables/components/FileLocationDownload/fileLocationDownload.tsx @@ -2,7 +2,6 @@ import { FileDownloadButton } from "@databiosphere/findable-ui/lib/components/co import { ButtonGroupButton } from "@databiosphere/findable-ui/lib/components/common/ButtonGroup/components/ButtonGroupButton/buttonGroupButton"; import { DownloadIconSmall } from "@databiosphere/findable-ui/lib/components/common/CustomIcon/common/constants"; import { useFileLocation } from "@databiosphere/findable-ui/lib/hooks/useFileLocation"; -import { useLoginGuard } from "@databiosphere/findable-ui/lib/providers/loginGuard/hook"; import { ProjectMatrixView } from "../../../../../../viewModelBuilders/azul/hca-dcp/common/projectMatrixMapper/entities"; export interface FileLocationDownloadProps { @@ -15,16 +14,13 @@ export const FileLocationDownload = ({ const { fileName, url } = projectMatrixView; const { fileUrl, isLoading, run } = useFileLocation(url); - // Prompt user for login before download, if required. - const { requireLogin } = useLoginGuard(); - return ( <> } loading={isLoading} - onClick={() => requireLogin(run)} + onClick={run} />