diff --git a/components/ErrorPage.tsx b/components/ErrorPage.tsx index c2f127d..ca5c2d8 100644 --- a/components/ErrorPage.tsx +++ b/components/ErrorPage.tsx @@ -7,7 +7,7 @@ export interface ErrorPageProps { message: string } -export const ErrorPage: React.FC = (props) => { +export const ErrorPage = (props: ErrorPageProps): JSX.Element => { const { message, statusCode } = props const i18n = getI18n() diff --git a/components/Header/Locales/Arrow.tsx b/components/Header/Locales/Arrow.tsx index c0d20a7..6a3ccb8 100644 --- a/components/Header/Locales/Arrow.tsx +++ b/components/Header/Locales/Arrow.tsx @@ -1,4 +1,4 @@ -export const Arrow: React.FC = () => { +export const Arrow = (): JSX.Element => { return ( = (props) => { +export const LocaleFlag = (props: LocaleFlagProps): JSX.Element => { const { locale, cookiesStore } = props const i18n = useI18n(cookiesStore) diff --git a/components/Interests/InterestParagraph.tsx b/components/Interests/InterestParagraph.tsx index 61fb67c..5730887 100644 --- a/components/Interests/InterestParagraph.tsx +++ b/components/Interests/InterestParagraph.tsx @@ -5,7 +5,9 @@ export interface InterestParagraphProps { description: string } -export const InterestParagraph: React.FC = (props) => { +export const InterestParagraph = ( + props: InterestParagraphProps +): JSX.Element => { const { title, description } = props return ( diff --git a/components/Interests/InterestsList/InterestItem.tsx b/components/Interests/InterestsList/InterestItem.tsx index 7c01abb..0954360 100644 --- a/components/Interests/InterestsList/InterestItem.tsx +++ b/components/Interests/InterestsList/InterestItem.tsx @@ -6,7 +6,7 @@ interface InterestItemProps { fontAwesomeIcon: IconDefinition } -export const InterestItem: React.FC = (props) => { +export const InterestItem = (props: InterestItemProps): JSX.Element => { const { fontAwesomeIcon, title } = props return ( diff --git a/components/Interests/InterestsList/index.tsx b/components/Interests/InterestsList/index.tsx index 1d0ed3c..8feac3b 100644 --- a/components/Interests/InterestsList/index.tsx +++ b/components/Interests/InterestsList/index.tsx @@ -3,7 +3,7 @@ import { faGit } from '@fortawesome/free-brands-svg-icons' import { InterestItem } from './InterestItem' -export const InterestsList: React.FC = () => { +export const InterestsList = (): JSX.Element => { return (