selection
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import React, { useEffect, useMemo, useState } from 'react';
|
||||
import { DownloadIcon, AnalyzeIcon, CloseIcon } from '../ui/icons';
|
||||
import { DownloadIcon, CloseIcon } from '../ui/icons';
|
||||
import DocumentSummarySection, {
|
||||
buildCorrespondentOptions,
|
||||
sortCorrespondents,
|
||||
@@ -350,7 +350,6 @@ export default DocumentViewerPanel;
|
||||
export const createDocumentViewerHeaderActions = ({
|
||||
document,
|
||||
actionState,
|
||||
onRegenerate,
|
||||
}) => {
|
||||
if (!document || !actionState) {
|
||||
return null;
|
||||
@@ -372,15 +371,6 @@ export const createDocumentViewerHeaderActions = ({
|
||||
<DownloadIcon />
|
||||
</a>
|
||||
) : null}
|
||||
<button
|
||||
type="button"
|
||||
className="icon-button"
|
||||
onClick={() => onRegenerate(document.id)}
|
||||
aria-label="Re-run analysis"
|
||||
title="Re-run analysis"
|
||||
>
|
||||
<AnalyzeIcon />
|
||||
</button>
|
||||
</>
|
||||
);
|
||||
};
|
||||
@@ -394,7 +384,6 @@ export const createDocumentViewerSurface = ({
|
||||
getDocumentAsset,
|
||||
resolveApiPath,
|
||||
notifyApiError,
|
||||
onRegenerate,
|
||||
onClose,
|
||||
renderSidebarToggle,
|
||||
tagLookupById,
|
||||
@@ -469,7 +458,6 @@ export const createDocumentViewerSurface = ({
|
||||
actions: createDocumentViewerHeaderActions({
|
||||
document,
|
||||
actionState,
|
||||
onRegenerate,
|
||||
}),
|
||||
breadcrumbs,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user