Browse Source

Better typing

Co-authored-by: Nicolas Frati <nicofrati@gmail.com>
Ivan Galakhov 4 years ago
parent
commit
94ddbb7f89
1 changed files with 1 additions and 1 deletions
  1. 1 1
      dashboard/src/components/Button.tsx

+ 1 - 1
dashboard/src/components/Button.tsx

@@ -7,7 +7,7 @@ interface Props {
   onClick: () => void;
 }
 
-const Button = ({ children, disabled, onClick }: Props) => {
+const Button: React.FC<Props> = ({ children, disabled, onClick }) => {
   return (
     <ButtonWrapper disabled={disabled} onClick={onClick}>
       {children}