Skip to content
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

Removing duplicate date formatting for listing expiry date in listing dashboard #10264

Merged
merged 2 commits into from Sep 14, 2020
Merged

Removing duplicate date formatting for listing expiry date in listing dashboard #10264

merged 2 commits into from Sep 14, 2020

Conversation

Rafi993
Copy link
Contributor

@Rafi993 Rafi993 commented Sep 9, 2020

What type of PR is this?

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update

Description

It removes duplicate date formatting code for listing expiry date in listing dashboard

QA Instructions, Screenshots, Recordings

expiry_date

Added tests?

  • yes
  • no, because they aren't needed
  • no, because I need help

Added to documentation?

  • docs.forem.com
  • readme
  • no documentation needed

@pr-triage pr-triage bot added the PR: unreviewed bot applied label for PR's with no review label Sep 9, 2020
@Rafi993
Copy link
Contributor Author

Rafi993 commented Sep 9, 2020

I did not fill in the category for listing. That is what shows up extra space in the above screenshot

Copy link
Contributor

@nickytonline nickytonline left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small suggestion, but otherwise good to go @Rafi993!

Comment on lines 41 to 42
{' '}
| Expires on: <DateTime dateTime={expiryDate} />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{' '}
| Expires on: <DateTime dateTime={expiryDate} />
{' | Expires on: '}<DateTime dateTime={expiryDate} />

@pr-triage pr-triage bot added PR: partially-approved bot applied label for PR's where a single reviewer approves changes and removed PR: unreviewed bot applied label for PR's with no review labels Sep 10, 2020
@nickytonline nickytonline requested a review from a team September 10, 2020 12:37
@pr-triage pr-triage bot added PR: unreviewed bot applied label for PR's with no review and removed PR: partially-approved bot applied label for PR's where a single reviewer approves changes labels Sep 10, 2020
@pr-triage pr-triage bot added PR: partially-approved bot applied label for PR's where a single reviewer approves changes and removed PR: unreviewed bot applied label for PR's with no review labels Sep 10, 2020
@nickytonline nickytonline requested a review from a team September 10, 2020 13:00
@@ -1,5 +1,6 @@
import PropTypes from 'prop-types';
import { h } from 'preact';
import { h, Fragment } from 'preact';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! I'm reacquainting myself with React (and learning more about Preact!) and I hadn't heard of Fragment components before! Pretty neat; thanks for teaching me about them by using them in your PR 😸

@rhymes rhymes merged commit 7a277ce into forem:master Sep 14, 2020
@pr-triage pr-triage bot added PR: merged bot applied label for PR's that are merged and removed PR: partially-approved bot applied label for PR's where a single reviewer approves changes labels Sep 14, 2020
@Rafi993
Copy link
Contributor Author

Rafi993 commented Sep 14, 2020

Thanks @rhymes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: merged bot applied label for PR's that are merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants