mirror of
https://github.com/Unkn0wnCat/KevinK.dev.js.git
synced 2025-06-08 13:42:07 +02:00
Lint and cleanup code
This commit is contained in:
parent
b16262025a
commit
a17f9b2b61
17 changed files with 755 additions and 185 deletions
|
@ -2,6 +2,7 @@ import React from "react"
|
|||
import {graphql} from "gatsby"
|
||||
import {Trans, useTranslation} from 'gatsby-plugin-react-i18next';
|
||||
import Layout from "../layouts/default";
|
||||
import PropTypes from "prop-types"
|
||||
|
||||
import styles from "./project.module.scss";
|
||||
|
||||
|
@ -26,7 +27,7 @@ query GetProject($urlname: String!, $lang: String!) {
|
|||
}
|
||||
`
|
||||
|
||||
export default function ProjectTemplate({data}) {
|
||||
const ProjectTemplate = ({data}) => {
|
||||
const {t} = useTranslation();
|
||||
let project = data.allProjectsJson.nodes[0];
|
||||
let projectName = project.name;
|
||||
|
@ -73,4 +74,10 @@ export default function ProjectTemplate({data}) {
|
|||
</section>*/}
|
||||
</Layout>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
ProjectTemplate.propTypes = {
|
||||
data: PropTypes.object.isRequired
|
||||
}
|
||||
|
||||
export default ProjectTemplate;
|
Loading…
Add table
Add a link
Reference in a new issue