Explorar el Código

add React.FC type

Aykut Saraç hace 3 años
padre
commit
a3f3544dea
Se han modificado 2 ficheros con 2 adiciones y 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>