Skip to content

✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.

add React.FC type

Aykut Saraça3f3544deaea
diff --git a/src/components/Image/index.tsx b/src/components/Image/index.tsx
index d53561ad..7156063f 100644
--- a/src/components/Image/index.tsx
+++ b/src/components/Image/index.tsx
@@ -10,6 +10,6 @@ const StyledImage = styled.img`
}
`;
-export const Image = ({ ...props }) => {
+export const Image: React.FC = ({ ...props }) => {
return <StyledImage {...props} />
};
diff --git a/src/components/Loading/index.tsx b/src/components/Loading/index.tsx
index 94f44565..fe22c854 100644
--- a/src/components/Loading/index.tsx
+++ b/src/components/Loading/index.tsx
@@ -29,7 +29,7 @@ const StyledMessage = styled.div`
font-weight: 500;
`;
-export const Loading = () => {
+export const Loading: React.FC = () => {
return (
<StyledLoading>
<StyledLogo>