From 5351179eb7558262a2d38d3757f55af4092e75dc Mon Sep 17 00:00:00 2001 From: "Taras.Hlukhovetskyi" Date: Fri, 6 Dec 2024 18:24:07 +0200 Subject: [PATCH] fix comments --- src/common/HistoryBackLink/historyBackLink.js | 35 +++++++++---------- src/components/ActionBar/ActionBar.js | 6 ++-- 2 files changed, 19 insertions(+), 22 deletions(-) diff --git a/src/common/HistoryBackLink/historyBackLink.js b/src/common/HistoryBackLink/historyBackLink.js index 2f4dcb380..23bf764f4 100644 --- a/src/common/HistoryBackLink/historyBackLink.js +++ b/src/common/HistoryBackLink/historyBackLink.js @@ -28,31 +28,28 @@ import { ReactComponent as HistoryIcon } from 'igz-controls/images/history.svg' import './historyBackLink.scss' -const HistoryBackLink = ({link, itemName}) => { - return ( -
- - - - - -
- -
Version history:
- }> - {itemName} - +const HistoryBackLink = ({ itemName, link }) => { + return ( +
+ + + + + +
+ +
+ Version history:{' '}
+ }>{itemName}
- ) +
+ ) } HistoryBackLink.propTypes = { - link: PropTypes.string.isRequired, itemName: PropTypes.string.isRequired, + link: PropTypes.string.isRequired } export default HistoryBackLink diff --git a/src/components/ActionBar/ActionBar.js b/src/components/ActionBar/ActionBar.js index 08d756800..39a1c972e 100644 --- a/src/components/ActionBar/ActionBar.js +++ b/src/components/ActionBar/ActionBar.js @@ -192,7 +192,7 @@ const ActionBar = ({ const newFilters = { ...filters, ...formValues } if (filtersHelperResult) { - if (params.name || params.hash) { + if (params.name || params.id) { navigate(navigateLink) } @@ -220,10 +220,10 @@ const ActionBar = ({ filtersHelper, changes, dispatch, - saveFilters, params.name, - params.hash, + params.id, filtersStore.groupBy, + saveFilters, removeSelectedItem, setSelectedRowData, toggleAllRows,