Browse Source

Merge pull request #928 from meriadec/fix-fix-dateformat

Update chart tooltip date format
master
Gaëtan Renaudeau 7 years ago
committed by GitHub
parent
commit
ea88673f2b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/components/BalanceSummary/index.js
  2. 2
      src/components/base/Chart/Tooltip.js

2
src/components/BalanceSummary/index.js

@ -91,7 +91,7 @@ const BalanceSummary = ({
val={d.value}
/>
<Box ff="Open Sans|Regular" color="grey" fontSize={3} mt={2}>
{moment(d.date).format('L')}
{moment(d.date).format('LL')}
</Box>
</Fragment>
)

2
src/components/base/Chart/Tooltip.js

@ -69,7 +69,7 @@ const Tooltip = ({
/>
)}
<Box ff="Open Sans|Regular" color="grey" fontSize={3} mt={2}>
{moment(item.date).format('L')}
{moment(item.date).format('LL')}
</Box>
</Fragment>
)}

Loading…
Cancel
Save