Show 'Off' text when disappearing messages are turned off

pull/1/head
Scott Nonnenberg 7 years ago
parent 0d13d437fe
commit 19ff050b3a

@ -14,7 +14,7 @@
phoneNumber="(202) 555-1000" phoneNumber="(202) 555-1000"
profileName="Mr. Fire" profileName="Mr. Fire"
disabled={true} disabled={true}
timespan="1 hour" timespan="Off"
i18n={util.i18n} i18n={util.i18n}
/> />
</util.ConversationContext> </util.ConversationContext>
@ -34,7 +34,7 @@
type="fromMe" type="fromMe"
phoneNumber="(202) 555-1000" phoneNumber="(202) 555-1000"
disabled={true} disabled={true}
timespan="1 hour" timespan="Off"
i18n={util.i18n} i18n={util.i18n}
/> />
</util.ConversationContext> </util.ConversationContext>
@ -54,7 +54,7 @@
type="fromSync" type="fromSync"
phoneNumber="(202) 555-1000" phoneNumber="(202) 555-1000"
disabled={true} disabled={true}
timespan="1 hour" timespan="Off"
i18n={util.i18n} i18n={util.i18n}
/> />
</util.ConversationContext> </util.ConversationContext>

@ -74,11 +74,9 @@ export class TimerNotification extends React.Component<Props> {
disabled ? 'module-timer-notification__icon--disabled' : null disabled ? 'module-timer-notification__icon--disabled' : null
)} )}
/> />
{disabled ? null : ( <div className="module-timer-notification__icon-label">
<div className="module-timer-notification__icon-label"> {timespan}
{timespan} </div>
</div>
)}
</div> </div>
<div className="module-timer-notification__message"> <div className="module-timer-notification__message">
{this.renderContents()} {this.renderContents()}

Loading…
Cancel
Save