diff --git a/monkey/monkey_island/cc/ui/src/components/report-components/common/RenderFileEncryptionStats.tsx b/monkey/monkey_island/cc/ui/src/components/report-components/common/RenderFileEncryptionStats.tsx deleted file mode 100644 index fb6c612a9..000000000 --- a/monkey/monkey_island/cc/ui/src/components/report-components/common/RenderFileEncryptionStats.tsx +++ /dev/null @@ -1,15 +0,0 @@ -import React from 'react'; - - -function renderFileEncryptionStats(successful: number, total: number) { - let textClassName = "" - if(successful > 0) { - textClassName = "text-success" - } else { - textClassName = "text-danger" - } - - return (
{successful} out of {total}
); -} - -export default renderFileEncryptionStats; diff --git a/monkey/monkey_island/cc/ui/src/components/report-components/ransomware/FileEncryptionTable.tsx b/monkey/monkey_island/cc/ui/src/components/report-components/ransomware/FileEncryptionTable.tsx index 8be659eab..270b214a0 100644 --- a/monkey/monkey_island/cc/ui/src/components/report-components/ransomware/FileEncryptionTable.tsx +++ b/monkey/monkey_island/cc/ui/src/components/report-components/ransomware/FileEncryptionTable.tsx @@ -1,7 +1,6 @@ import React from 'react'; import ReactTable from 'react-table'; import {renderArray} from '../common/RenderArrays'; -import renderFileEncryptionStats from "../common/renderFileEncryptionStats"; type Props = { @@ -51,5 +50,17 @@ const columns = [ } ]; +function renderFileEncryptionStats(successful: number, total: number) { + let textClassName = '' + + if(successful > 0) { + textClassName = 'text-success' + } else { + textClassName = 'text-danger' + } + + return ({successful} out of {total}
); +} + export default FileEncryptionTable;