-
Notifications
You must be signed in to change notification settings - Fork 80
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
Add link icon to release card header #1492
Conversation
@@ -7,10 +7,6 @@ function Pagination({limit, page, pages, total, setPage}) { | |||
const [pagesToDisplay, setPagesToDisplay] = React.useState(5); | |||
const [marginPagesDisplayed, setMarginPagesDisplayed] = React.useState(2); | |||
|
|||
if (total == 0) { |
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.
The only place where Pagiation is called guards for total == 0
already
Looks good to me, but the build thinks otherwise |
@@ -53,7 +53,7 @@ function PluginReleases({pluginId, versions}) { | |||
<a href={release.htmlURL} title="See the release on GitHub" className="github-icon d-flex"><ion-icon name="logo-github" /></a> | |||
</>)} | |||
<a className="anchor after" href={`#version_${version.version}`}> | |||
<ion-icon name="link-outline"></ion-icon> | |||
<ion-icon name="link-outline"/> |
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.
I believe web components must have closing tags, not self closing.
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.
You're right, self-closing custom elements are still not valid HTML (as far as I understand WICG/webcomponents#624 ), but
- ESlint prefers self-closing tags and we're using it this way for all icons in the repo
- This is .jsx so HTML parsing restrictions do not apply
Co-authored-by: Gavin Mogan <[email protected]>
Fixes #1273 (the remaining part)
Also fixes some of the warnings Gatsby now produces in dev mode.