Merge pull request #174 from varasev/time-text-labels
(Fix) Add some text labels for clear displaying of time
This commit is contained in:
commit
28f27d7c9c
|
@ -757,7 +757,7 @@ export class BallotCard extends React.Component {
|
||||||
{children}
|
{children}
|
||||||
<div className="ballots-about-i ballots-about-i_time">
|
<div className="ballots-about-i ballots-about-i_time">
|
||||||
<div className="ballots-about-td ballots-about-td-title">
|
<div className="ballots-about-td ballots-about-td-title">
|
||||||
<p className="ballots-about-i--title">Ballot Time</p>
|
<p className="ballots-about-i--title">Ballot Time (UTC)</p>
|
||||||
</div>
|
</div>
|
||||||
<div className="ballots-about-td ballots-about-td-value">
|
<div className="ballots-about-td ballots-about-td-value">
|
||||||
<p className="ballots-i--created">{this.startTime}</p>
|
<p className="ballots-i--created">{this.startTime}</p>
|
||||||
|
|
|
@ -29,7 +29,7 @@ export class BallotEmissionFundsMetadata extends React.Component {
|
||||||
@action('Get beginDateTime and endDateTime')
|
@action('Get beginDateTime and endDateTime')
|
||||||
getDateTimeLimits = async () => {
|
getDateTimeLimits = async () => {
|
||||||
const { votingToManageEmissionFunds } = this.props.contractsStore
|
const { votingToManageEmissionFunds } = this.props.contractsStore
|
||||||
const dateTimeFormat = 'MM/DD/YYYY HH:mm'
|
const dateTimeFormat = 'MM/DD/YYYY h:mm A'
|
||||||
|
|
||||||
this.beginDateTime = '...loading date...'
|
this.beginDateTime = '...loading date...'
|
||||||
this.endDateTime = '...loading date...'
|
this.endDateTime = '...loading date...'
|
||||||
|
@ -69,7 +69,8 @@ export class BallotEmissionFundsMetadata extends React.Component {
|
||||||
if (this.noActiveBallotExists === true) {
|
if (this.noActiveBallotExists === true) {
|
||||||
note = (
|
note = (
|
||||||
<p>
|
<p>
|
||||||
The ballot can be created starting from <b>{this.beginDateTime}</b> and will end on <b>{this.endDateTime}</b>.
|
The ballot can be created starting from <b>{this.beginDateTime}</b> (local time) and will end on{' '}
|
||||||
|
<b>{this.endDateTime}</b> (local time).
|
||||||
</p>
|
</p>
|
||||||
)
|
)
|
||||||
} else if (this.noActiveBallotExists !== true) {
|
} else if (this.noActiveBallotExists !== true) {
|
||||||
|
|
Loading…
Reference in New Issue