Explorar o código

add React.FC type

Aykut Saraç %!s(int64=3) %!d(string=hai) anos
pai
achega
a3f3544dea
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. 1 1
      src/components/Image/index.tsx
  2. 1 1
      src/components/Loading/index.tsx

+ 1 - 1
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} />
 };

+ 1 - 1
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>