diff --git a/src/components/PollDetails/Charts/PollPerOptionChart.tsx b/src/components/PollDetails/Charts/PollPerOptionChart.tsx index 5f60cf7..bb07c31 100644 --- a/src/components/PollDetails/Charts/PollPerOptionChart.tsx +++ b/src/components/PollDetails/Charts/PollPerOptionChart.tsx @@ -65,7 +65,13 @@ const PollPerOptionChart = props => { return ( - + {options.map((entry, index) => ( { let to = endOfHour(period) return { - label: format(from, 'dd MMM Ho'), + label: format(from, 'dd MMM H:mm'), from, to, endDate: getUnixTime(to), diff --git a/src/components/VoteDetails/Charts/ApprovalsByAddressChart.tsx b/src/components/VoteDetails/Charts/ApprovalsByAddressChart.tsx index 5167296..1eac8bf 100644 --- a/src/components/VoteDetails/Charts/ApprovalsByAddressChart.tsx +++ b/src/components/VoteDetails/Charts/ApprovalsByAddressChart.tsx @@ -2,8 +2,7 @@ import React from 'react' import { Bar, YAxis } from 'recharts' import { Chart, ChartWrapper } from '../../common' -const info = - 'Gives users an idea of how well represented different ‘sizes’ of MKR holder were in this vote. Note that this metric is not sybil safe. ' +const info = `Gives users an idea of how well represented different ‘sizes’ of MKR holder were in this vote. Note that this metric is not sybil safe. ` const links = [ { title: 'MakerDAO Governance Graph', @@ -14,7 +13,7 @@ const links = [ const ApprovalsByAddressChart = props => { const { wrapperProps, modalProps } = props return ( - + - + void styles: any value: string @@ -48,6 +50,7 @@ type Props = { function ChartWrapper(props: Props) { const { value, + markdown, onChange, handleModal, children, @@ -82,7 +85,7 @@ function ChartWrapper(props: Props) {
- {info} + {!markdown ? info : } {links && links.map(link => (