mirror of
https://github.com/theoludwig/theoludwig.git
synced 2025-05-29 22:37:44 +02:00
refactor: avoid usage of React.FC to use JSX.Element (to stay consistent)
This commit is contained in:
@ -9,7 +9,7 @@ export interface SkillComponentProps {
|
||||
skill: SkillName
|
||||
}
|
||||
|
||||
export const SkillComponent: React.FC<SkillComponentProps> = (props) => {
|
||||
export const SkillComponent = (props: SkillComponentProps): JSX.Element => {
|
||||
const { skill } = props
|
||||
|
||||
const skillProperties = skills[skill]
|
||||
|
@ -5,7 +5,7 @@ export interface SkillsSectionProps {
|
||||
children: React.ReactNode
|
||||
}
|
||||
|
||||
export const SkillsSection: React.FC<SkillsSectionProps> = (props) => {
|
||||
export const SkillsSection = (props: SkillsSectionProps): JSX.Element => {
|
||||
const { title, children } = props
|
||||
|
||||
return (
|
||||
|
@ -3,7 +3,7 @@ import { getI18n } from '@/i18n/i18n.server'
|
||||
import { SkillComponent } from './Skill'
|
||||
import { SkillsSection } from './SkillsSection'
|
||||
|
||||
export const Skills: React.FC = () => {
|
||||
export const Skills = (): JSX.Element => {
|
||||
const i18n = getI18n()
|
||||
|
||||
return (
|
||||
|
Reference in New Issue
Block a user