Skip to content

Commit

Permalink
take out replacing of archived files
Browse files Browse the repository at this point in the history
  • Loading branch information
taraepp committed Dec 16, 2024
1 parent 80ded17 commit 4e72a38
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,13 @@ interface ArchivedDocumentsSectionProps {
titleLevel?: 1 | 2 | 3 | 4 | 5;
href?: string;
showCategory?: boolean;
canReplace?: boolean;
}

const ArchivedDocumentsSection: FC<ArchivedDocumentsSectionProps> = ({
titleLevel = 4,
href = "archived-documents",
documents,
showCategory = true,
canReplace = true,
}) => {
const { isFeatureEnabled } = useFeatureFlag();

Expand All @@ -45,7 +43,7 @@ const ArchivedDocumentsSection: FC<ArchivedDocumentsSectionProps> = ({
<DocumentTable
documents={documents}
showVersionHistory={true}
canReplaceDocuments={canReplace}
canReplaceDocuments={false}
additionalColumns={additionalColumns}
/>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,6 @@ const ProjectDocumentsTab: FC<ProjectDocumentsTabProps> = ({ project }) => {
<ArchivedDocumentsSection
documents={mineDocuments}
showCategory={false}
canReplace={canReplace}
/>
),
},
Expand Down

0 comments on commit 4e72a38

Please sign in to comment.