mirror of
https://github.com/wassname/talk.git
synced 2026-07-16 11:22:16 +08:00
modifications - displaying time
modifications in displaying like X minutes Y seconds
This commit is contained in:
@@ -45,16 +45,13 @@ export class CountdownSeconds extends React.Component {
|
||||
if (typeof classNameForMsRemaining === 'function') {
|
||||
classFromProp = classNameForMsRemaining(msRemaining);
|
||||
}
|
||||
if (wholeMinRemaining > 0) {
|
||||
return (
|
||||
<span className={classFromProp}>
|
||||
{`${wholeMinRemaining} ${minUnit} ${wholeSecRemaining} ${secUnit}`}
|
||||
</span>
|
||||
);
|
||||
}
|
||||
const text = wholeMinRemaining > 0
|
||||
? `${wholeMinRemaining} ${minUnit} ${wholeSecRemaining} ${secUnit}`
|
||||
: `${wholeSecRemaining} ${secUnit}`;
|
||||
|
||||
return (
|
||||
<span className={classFromProp}>
|
||||
{`${wholeSecRemaining} ${secUnit}`}
|
||||
{text}
|
||||
</span>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user