-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Free Trials: Add expiring state to PlanStatus
#1708
Conversation
706e00b
to
a407776
Compare
@@ -37,26 +31,32 @@ const PlanStatusProgress = React.createClass( { | |||
}, | |||
|
|||
renderDaysRemaining() { | |||
const { plan } = this.props; | |||
|
|||
return this.translate( | |||
'%(daysUntilExpiry)s day remaining', | |||
'%(daysUntilExpiry)s days remaining', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the daysUntilExpiry
argument is always an integer we could reference it as %(daysUntilExpiry)d
instead.
Did we really need to move the progress bar into its own folder? As far as I know it's perfectly fine to have sub-components. |
46d4153
to
3235938
Compare
Thanks for looking, @stephanethomas. I moved |
Code looks good. |
👍 LGTM, awaiting pull 1780 for proper expiry messaging |
3235938
to
6304062
Compare
Free Trials: Add expiring state to `PlanStatus`
Fixes part of #1151.
This PR updates the render() of
PlanStatus
and its child,PlanStatusProgress
, to display a red progress bar/'days remaining' text and a primary 'Purchase Now' button if the trial expires within five days.Testing
Review