Skip to content

Commit

Permalink
fix(rhelGraphCard): issues/93 remove the word daily (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdcabrera committed Sep 6, 2019
1 parent b2368dc commit 70a8733
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion public/locales/en-US.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"curiosity-graph": {
"heading": "Daily CPU socket usage",
"heading": "CPU socket usage",
"dropdownDaily": "Daily",
"dropdownWeekly": "Weekly",
"dropdownMonthly": "Monthly",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ exports[`RhelGraphCard Component should render a non-connected component: non-co
className="pf-c-card__head"
>
<h2>
Daily CPU socket usage
CPU socket usage
</h2>
<CardActions>
<div
Expand Down Expand Up @@ -419,7 +419,7 @@ exports[`RhelGraphCard Component should render multiple states: fulfilled 1`] =
>
<CardHead>
<h2>
Daily CPU socket usage
CPU socket usage
</h2>
<CardActions>
<Select
Expand Down Expand Up @@ -680,7 +680,7 @@ exports[`RhelGraphCard Component should render multiple states: pending 1`] = `
>
<CardHead>
<h2>
Daily CPU socket usage
CPU socket usage
</h2>
<CardActions>
<Select
Expand Down
2 changes: 1 addition & 1 deletion src/components/rhelGraphCard/rhelGraphCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class RhelGraphCard extends React.Component {
return (
<Card className="curiosity-usage-graph fadein">
<CardHead>
<h2>{t('curiosity-graph.heading', 'Daily CPU socket usage')}</h2>
<h2>{t('curiosity-graph.heading', 'CPU socket usage')}</h2>
<CardActions>
<Select
aria-label={t('curiosity-graph.dropdownPlaceholder', 'Select date range')}
Expand Down
10 changes: 5 additions & 5 deletions tests/__snapshots__/i18n.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@ msgstr \\"\\"
msgid \\"curiosity-graph.tooltipPreviousLabelWeekly\\"
msgstr \\"\\"
#: src/components/rhelGraphCard/rhelGraphCard.js:79
msgctxt \\"CPU socket usage\\"
msgid \\"curiosity-graph.heading\\"
msgstr \\"\\"
#: src/components/rhelGraphCard/rhelGraphCardTypes.js:7
msgctxt \\"Daily\\"
msgid \\"curiosity-graph.dropdownDaily\\"
msgstr \\"\\"
#: src/components/rhelGraphCard/rhelGraphCard.js:79
msgctxt \\"Daily CPU socket usage\\"
msgid \\"curiosity-graph.heading\\"
msgstr \\"\\"
#: src/components/rhelGraphCard/rhelGraphCardTypes.js:9
msgctxt \\"Monthly\\"
msgid \\"curiosity-graph.dropdownMonthly\\"
Expand Down

0 comments on commit 70a8733

Please sign in to comment.