mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-06 07:56:11 +02:00
refact: convert components to use React.FC type + type improvements
This commit is contained in:
committed by
Jean-Philippe Sirois
parent
d61c218657
commit
1d88367645
@@ -1,11 +1,11 @@
|
||||
import { graphql } from "gatsby"
|
||||
import React, { Fragment } from "react"
|
||||
import React, { FC, Fragment } from "react"
|
||||
import { Markdown } from "../components/Markdown"
|
||||
import { ResourceHeader } from "../components/ResourceHeader"
|
||||
import { SEO } from "../components/SEO"
|
||||
|
||||
// @todo maybe find alternative type for data
|
||||
function LanguagePost({ data }: any) {
|
||||
const LanguagePost: FC<any> = ({ data }) => {
|
||||
const { relativePath } = data.file
|
||||
const { html, fields, frontmatter, timeToRead } = data.file.post
|
||||
|
||||
|
||||
Reference in New Issue
Block a user