mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-05 07:56:15 +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,5 +1,5 @@
|
||||
import { graphql, useStaticQuery } from "gatsby"
|
||||
import React from "react"
|
||||
import React, { FC } from "react"
|
||||
import Helmet from "react-helmet"
|
||||
|
||||
interface ISEOProps {
|
||||
@@ -10,13 +10,13 @@ interface ISEOProps {
|
||||
readonly title: string
|
||||
}
|
||||
|
||||
export function SEO({
|
||||
export const SEO: FC<ISEOProps> = ({
|
||||
description,
|
||||
lang = "en",
|
||||
meta = [],
|
||||
keywords = [],
|
||||
title,
|
||||
}: ISEOProps) {
|
||||
}) => {
|
||||
const { site } = useStaticQuery(
|
||||
graphql`
|
||||
query {
|
||||
|
||||
Reference in New Issue
Block a user