refactor: avoid usage of React.FC to use JSX.Element (to stay consistent)

This commit is contained in:
theoludwig committed 2023-08-01 17:22:09 +02:00
1 parent 4b2e7bae90
commit 2e0138194c
34 files changed
+51 -37

No files matched your search

@@ -4,7 +4,7 @@ interface ProfileItemProps {
link?: string
}
export const ProfileItem: React.FC<ProfileItemProps> = (props) => {
export const ProfileItem = (props: ProfileItemProps): JSX.Element => {
const { title, value, link } = props
return (