Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Taras-Hlukhovetskyi committed Dec 9, 2024
1 parent 985cc77 commit 5351179
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 22 deletions.
35 changes: 16 additions & 19 deletions src/common/HistoryBackLink/historyBackLink.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,31 +28,28 @@ import { ReactComponent as HistoryIcon } from 'igz-controls/images/history.svg'

import './historyBackLink.scss'

const HistoryBackLink = ({link, itemName}) => {
return (
<div className="history-back-link">
<Link
to={link}
className="history-back-link__icon"
>
<RoundedIcon id="history-back-link-btn" tooltipText="Back">
<Back />
</RoundedIcon>
</Link>
<div className="history-back-link__title">
<HistoryIcon />
<div className="history-back-link__title-version" data-testid="version-history">Version history: </div>
<Tooltip template={<TextTooltipTemplate text={itemName} />}>
{itemName}
</Tooltip>
const HistoryBackLink = ({ itemName, link }) => {
return (
<div className="history-back-link">
<Link to={link} className="history-back-link__icon">
<RoundedIcon id="history-back-link-btn" tooltipText="Back">
<Back />
</RoundedIcon>
</Link>
<div className="history-back-link__title">
<HistoryIcon />
<div className="history-back-link__title-version" data-testid="version-history">
Version history:{' '}
</div>
<Tooltip template={<TextTooltipTemplate text={itemName} />}>{itemName}</Tooltip>
</div>
)
</div>
)
}

HistoryBackLink.propTypes = {
link: PropTypes.string.isRequired,
itemName: PropTypes.string.isRequired,
link: PropTypes.string.isRequired
}

export default HistoryBackLink
6 changes: 3 additions & 3 deletions src/components/ActionBar/ActionBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ const ActionBar = ({
const newFilters = { ...filters, ...formValues }

if (filtersHelperResult) {
if (params.name || params.hash) {
if (params.name || params.id) {
navigate(navigateLink)
}

Expand Down Expand Up @@ -220,10 +220,10 @@ const ActionBar = ({
filtersHelper,
changes,
dispatch,
saveFilters,
params.name,
params.hash,
params.id,
filtersStore.groupBy,
saveFilters,
removeSelectedItem,
setSelectedRowData,
toggleAllRows,
Expand Down

0 comments on commit 5351179

Please sign in to comment.