(Update) Add some text labels for clear displaying of time

This commit is contained in:
Vadim Arasev 2018-09-21 10:51:23 +03:00
parent 5fdf932a05
commit fae9ae585a
2 changed files with 4 additions and 3 deletions

View File

@ -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>

View File

@ -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) {