Browse Source

add React.FC type

Aykut Saraç 3 năm trước cách đây
mục cha
commit
a3f3544dea
2 tập tin đã thay đổi với 2 bổ sung2 xóa
  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>