Skip to content

Commit

Permalink
Add id property to the daily charts
Browse files Browse the repository at this point in the history
  • Loading branch information
diegovalle committed Nov 6, 2024
1 parent 3957a4c commit 94e1636
Showing 1 changed file with 19 additions and 18 deletions.
37 changes: 19 additions & 18 deletions elcri.men/src/pages/reporte-diario.js
Original file line number Diff line number Diff line change
Expand Up @@ -578,25 +578,26 @@ function ReporteDiario(props) {
path={props.location.pathname}
lang={props.pageContext.locale}
/>
<HeroTitle>
{intl.formatMessage({ id: 'Daily Homicides in Mexico' })}{' '}
{maxDate !== null ? (
<i>
<FormattedDate
value={new Date(maxDate + 'T00:00:00.000-06:00')}
day="2-digit"
month="long"
year="numeric"
timeZone="America/Mexico_City"
/>
</i>
) : (
'⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀'
)}
</HeroTitle>

<div className="container is-fullhd" id="trends">
<div id="daily-trends">
<article id="daily_homicides">
<HeroTitle>
{intl.formatMessage({ id: 'Daily Homicides in Mexico' })}{' '}
{maxDate !== null ? (
<i>
<FormattedDate
value={new Date(maxDate + 'T00:00:00.000-06:00')}
day="2-digit"
month="long"
year="numeric"
timeZone="America/Mexico_City"
/>
</i>
) : (
'⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀'
)}
</HeroTitle>
<article>
<div className="columns">
<div className="column is-10 is-offset-1">
<figure className="image is-2by1">
Expand Down Expand Up @@ -682,7 +683,7 @@ function ReporteDiario(props) {
</div>

<hr style={{ backgroundColor: '#fff' }} />
<div id="states">
<div id="daily-states">
<h3 className="title is-3">
<FormattedHTMLMessage id="states_daily_report" />
</h3>
Expand Down

0 comments on commit 94e1636

Please sign in to comment.