From b7aee25d0d6d06b28b45261526c6e6da40d7b59c Mon Sep 17 00:00:00 2001 From: Bogdan Date: Thu, 19 Oct 2023 14:39:23 +0300 Subject: [PATCH] Set proper default props for Queue details and status (cherry picked from commit dc099a77ca9e6993d386a2b70f1aff1fed34a32b) --- frontend/src/Activity/Queue/QueueDetails.js | 5 +++++ frontend/src/Activity/Queue/QueueStatusCell.js | 5 ++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/frontend/src/Activity/Queue/QueueDetails.js b/frontend/src/Activity/Queue/QueueDetails.js index c415e55f8..7014bf5da 100644 --- a/frontend/src/Activity/Queue/QueueDetails.js +++ b/frontend/src/Activity/Queue/QueueDetails.js @@ -81,4 +81,9 @@ QueueDetails.propTypes = { progressBar: PropTypes.node.isRequired }; +QueueDetails.defaultProps = { + trackedDownloadStatus: 'ok', + trackedDownloadState: 'downloading' +}; + export default QueueDetails; diff --git a/frontend/src/Activity/Queue/QueueStatusCell.js b/frontend/src/Activity/Queue/QueueStatusCell.js index e5ebb2bf6..4e8b9658c 100644 --- a/frontend/src/Activity/Queue/QueueStatusCell.js +++ b/frontend/src/Activity/Queue/QueueStatusCell.js @@ -2,7 +2,6 @@ import PropTypes from 'prop-types'; import React from 'react'; import TableRowCell from 'Components/Table/Cells/TableRowCell'; import { tooltipPositions } from 'Helpers/Props'; -import translate from 'Utilities/String/translate'; import QueueStatus from './QueueStatus'; import styles from './QueueStatusCell.css'; @@ -41,8 +40,8 @@ QueueStatusCell.propTypes = { }; QueueStatusCell.defaultProps = { - trackedDownloadStatus: translate('Ok'), - trackedDownloadState: translate('Downloading') + trackedDownloadStatus: 'ok', + trackedDownloadState: 'downloading' }; export default QueueStatusCell;