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

update ministry names in code table, add news blurb, format news blurbs #3750

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

brennanwebster
Copy link
Collaborator

Overview

This PR includes the following proposed change(s):

  • {List all the changes, if possible add the linked issue/ticket #}

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Refactoring / Documentation
  • Version change

if your change is a breaking change, please add breaking change label to this PR

How Has This Been Tested?

Please describe the tests that you ran to verify your changes.

Screenshots

Please add any relevant UI screenshots if applicable.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • New and existing unit tests pass locally with my changes

Comment on lines 73 to 79
<ul className="newsListItemContent">
{newsItem.content.map((content: string, contentIndex: number) => (
<li
key={contentIndex}
style={{ marginBottom: contentIndex < newsItem.content.length - 1 ? '1rem' : '0' }}
>
{renderContentWithLinks(content)}
Copy link
Collaborator

@LocalNewsTV LocalNewsTV Dec 13, 2024

Choose a reason for hiding this comment

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

Using index for array keys is a code smell
You can modify the CSS of the newsListItemContent with a css selector like
(from top of my head)

.newsListItemContent > li:not(:last-child){
margin-bottom: 1rem;
}

Copy link
Collaborator

Choose a reason for hiding this comment

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

Little additional context one don't use array indexes as keys here

Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants