From 1c5303858130da5f8f031afcabef4245e8766425 Mon Sep 17 00:00:00 2001 From: chisom chima Date: Thu, 28 Mar 2024 15:38:38 +0100 Subject: [PATCH] feat: update the summary table to display a message in the cases of a dry run --- src/components/JobSummary/Summary/Summary.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/JobSummary/Summary/Summary.js b/src/components/JobSummary/Summary/Summary.js index bdac74f5..cfc1a455 100644 --- a/src/components/JobSummary/Summary/Summary.js +++ b/src/components/JobSummary/Summary/Summary.js @@ -1,6 +1,6 @@ -import PropTypes from 'prop-types' -import { NoticeBox } from '@dhis2/ui' import i18n from '@dhis2/d2-i18n' +import { NoticeBox } from '@dhis2/ui' +import PropTypes from 'prop-types' import React from 'react' import { typeReportParse } from '../helper.js' import { SingleSummary } from '../SingleSummary/SingleSummary.js' @@ -31,7 +31,7 @@ const Summary = ({ summary, importType, dryRun }) => { > {i18n.t( - `⁠ ${ignored} entities will be ignored out of ${total} entities ⁠` + `⁠${ignored} entities will be ignored out of ${total} entities⁠` )} @@ -106,8 +106,8 @@ const Summary = ({ summary, importType, dryRun }) => { Summary.propTypes = { summary: PropTypes.object.isRequired, - importType: PropTypes.string, dryRun: PropTypes.bool, + importType: PropTypes.string, } export { Summary }