浏览代码

add React.FC type

Aykut Saraç 3 年之前
父节点
当前提交
a3f3544dea
共有 2 个文件被更改,包括 2 次插入2 次删除
  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>