refact: prefer function over lambdas

This commit is contained in:
Jean-Philippe Sirois
2019-07-27 17:54:51 -04:00
parent f7f66a3071
commit 90fb9b1888
13 changed files with 51 additions and 45 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ import SEO from "../components/SEO"
import DocsLayout from "../components/DocsLayout"
// @todo maybe find alternative type for data
const LanguagePost = ({ data }: any) => {
function LanguagePost({ data }: any) {
const { html, frontmatter } = data.file.post
console.log(data)
return (