chore(lint): small clean up of lint errors wip on #312

This commit is contained in:
Jean-Philippe Sirois
2020-08-26 19:39:27 -04:00
parent c2d58941c5
commit 2a974cc598
24 changed files with 61 additions and 40 deletions
+6 -1
View File
@@ -9,7 +9,10 @@ import { SEO } from "../../components/SEO"
import { FourZeroFourHint } from "../../components/FourZeroFourHint"
import { FourZeroFour } from "../../components/FourZeroFour"
export default ({ data }: ComponentQuery<{ allFile: FileConnection }>) => (
// TODO: there has to be a better type for this
const FourZeroFourPage: React.FC<{ data: { allFile: FileConnection } }> = ({
data,
}: ComponentQuery<{ allFile: FileConnection }>) => (
<Fragment>
<SEO title="404: Archive Not found" />
<FourZeroFour title="ARCHIVE NOT FOUND">
@@ -26,6 +29,8 @@ export default ({ data }: ComponentQuery<{ allFile: FileConnection }>) => (
</Fragment>
)
export default FourZeroFourPage
export const query = graphql`
query {
allFile(filter: { sourceInstanceName: { eq: "what-is-archive" } }) {
+1 -1
View File
@@ -17,7 +17,7 @@ function ArchivesPage() {
This regroups the archives of our occasional, temporary channels
that cover a piece of technology that might be unknown to part of
our users. You can find those on{" "}
<Link to="/about">The Programmer's Hangout</Link>.
<Link to="/about">The Programmer&apos;s Hangout</Link>.
</p>
}
/>
+6 -1
View File
@@ -8,7 +8,10 @@ import { FourZeroFourHint } from "../../components/FourZeroFourHint"
import { SEO } from "../../components/SEO"
import { FourZeroFour } from "../../components/FourZeroFour"
export default ({ data }: ComponentQuery<{ allFile: FileConnection }>) => (
// TODO: there has to be a better type for this
const FourZeroFourPage: React.FC<{ data: { allFile: FileConnection } }> = ({
data,
}: ComponentQuery<{ allFile: FileConnection }>) => (
<Fragment>
<SEO title="404: Resource Not found" />
<FourZeroFour title="RESOURCE NOT FOUND">
@@ -25,6 +28,8 @@ export default ({ data }: ComponentQuery<{ allFile: FileConnection }>) => (
</Fragment>
)
export default FourZeroFourPage
export const query = graphql`
query {
allFile(filter: { sourceInstanceName: { eq: "resources" } }) {
+1 -1
View File
@@ -18,7 +18,7 @@ function ResourcesPage() {
<p>
This is meant as a small knowledge base for commonly answered
questions on our Discord community,{" "}
<Link to="/about">The Programmer's Hangout</Link>.
<Link to="/about">The Programmer&apos;s Hangout</Link>.
</p>
<p>
All of it is open source, and you can contribute to it on{" "}