Skip to content

Commit

Permalink
Changed <Fragment> to <div> so that title is immediately behind the r…
Browse files Browse the repository at this point in the history
…efresh icon. (#2752)

Since this is a bug in prod, transforming IncidentOverviewTitle to tsx will have a separate PR.
  • Loading branch information
SireeKoolenWijkstra authored Nov 14, 2023
1 parent a3568a1 commit 8618f8b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2019 - 2021 Gemeente Amsterdam
import { Fragment, useMemo } from 'react'
import { useMemo } from 'react'

import PropTypes from 'prop-types'
import { connect } from 'react-redux'
Expand Down Expand Up @@ -34,14 +34,14 @@ export const IncidentOverviewTitle = ({ filter, incidentsCount, query }) => {
title += hasCount ? ` (${incidentsCount.toLocaleString('nl-NL')})` : ''

return filter.refresh ? (
<Fragment>
<div>
<RefreshIcon
data-testid="refresh-icon"
role="img"
aria-label="Ververst automatisch"
/>{' '}
{title}
</Fragment>
</div>
) : (
title
)
Expand Down

0 comments on commit 8618f8b

Please sign in to comment.