[Feature/744] Added Until Release Display on Book Page #149
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What Does This Do?
Adds a little text display by the release dates to showcase how many days are left until the book's release on the book page.
How is it Done?
Added another section in the aside area to house the new text display. Then, utilized Moment to determine if the dates were in the future, the next day, the same day, or in the past. Depending on that logic, the text display would either show for today's date and future dates. If the date was in the past, the text display would not appear.
In addition, fixed an internal code issue where BrowserModule was imported several times in the application. All except the root import of BrowserModule has been updated to CommonModule as is standard.
Related Tickets and Issues
Internal#744