diff --git a/packages/files-ui/src/Components/Modules/FileBrowsers/FileInfoModal.tsx b/packages/files-ui/src/Components/Modules/FileBrowsers/FileInfoModal.tsx index 73a1122989..98e422c918 100644 --- a/packages/files-ui/src/Components/Modules/FileBrowsers/FileInfoModal.tsx +++ b/packages/files-ui/src/Components/Modules/FileBrowsers/FileInfoModal.tsx @@ -7,7 +7,7 @@ import React, { useState, useEffect } from "react" import CustomModal from "../../Elements/CustomModal" import CustomButton from "../../Elements/CustomButton" import { Trans } from "@lingui/macro" -import { FileFullInfo, useFiles } from "../../../Contexts/FilesContext" +import { FileFullInfo } from "../../../Contexts/FilesContext" import { Button, formatBytes, @@ -161,7 +161,6 @@ interface IFileInfoModuleProps { const FileInfoModal = ({ filePath, close }: IFileInfoModuleProps) => { const classes = useStyles() const { filesApiClient } = useFilesApi() - const { personalEncryptionKey } = useFiles() const [loadingFileInfo, setLoadingInfo] = useState(false) const [fullFileInfo, setFullFullInfo] = useState() const { bucket } = useFileBrowser() @@ -381,7 +380,7 @@ const FileInfoModal = ({ filePath, close }: IFileInfoModuleProps) => { component="p" > - { personalEncryptionKey } + {bucket?.encryptionKey}