Skip to content

Commit

Permalink
Merge pull request #1041 from 18F/bjs-bold-content-overview
Browse files Browse the repository at this point in the history
bold dynamic usa overview content
  • Loading branch information
jeremiak authored Jun 23, 2017
2 parents 3a98889 + 3f17910 commit 271fb0e
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/components/ExplorerIntroNational.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import { estimatedTerm, nibrsTerm, srsTerm } from './Terms'
import { formatNum } from '../util/formats'
import mapCrimeToGlossaryTerm from '../util/glossary'

const highlight = txt => <strong>{txt}</strong>

const ExplorerIntroNational = ({ crime, ucr, until }) => {
const isArson = crime === 'arson'
const untilUcr = ucr.find(p => p.year === until)
Expand Down Expand Up @@ -35,18 +37,18 @@ const ExplorerIntroNational = ({ crime, ucr, until }) => {
<p className="serif">
In
{' '}
{until}
{highlight(until)}
, the FBI
{' '}
{estimatedTerm}
{' '}
crime statistics for the nation based on data received from
{' '}
{formatNum(untilUcr.participating_agencies)}
{highlight(formatNum(untilUcr.participating_agencies))}
{' '}
law enforcement agencies out of
{' '}
{formatNum(untilUcr.total_agencies)}
{highlight(formatNum(untilUcr.total_agencies))}
{' '}
in the country that year.
</p>
Expand All @@ -65,9 +67,10 @@ const ExplorerIntroNational = ({ crime, ucr, until }) => {
reports sent to the FBI.
</p>
<p className="serif">
In {until}, the FBI received voluntary reports of arson from
In {highlight(until)}, the FBI received voluntary reports of arson
from
{' '}
{formatNum(untilUcr.participating_agencies)}
{highlight(formatNum(untilUcr.participating_agencies))}
{' '}
law enforcement agencies. The charts below feature unestimated
data.
Expand Down

0 comments on commit 271fb0e

Please sign in to comment.