Skip to content

Commit

Permalink
fix: unify prop definition
Browse files Browse the repository at this point in the history
  • Loading branch information
bramvanhoutte committed May 9, 2020
1 parent 71f9be6 commit 5cd011f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/Button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';

import styles from './Button.module.css';

export interface Props {
interface Props {
children: string;
type: 'primary' | 'secondary';
onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
Expand Down
2 changes: 1 addition & 1 deletion src/components/Icon/Icon.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';

export interface Props {
interface Props {
color?: string;
size?: string | number;
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/Input/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import classNames from 'classnames';

import styles from './Input.module.css';

type Props = {
interface Props {
name: string;
value?: string;
onChange?: ChangeEventHandler<HTMLInputElement>;
Expand All @@ -14,7 +14,7 @@ type Props = {
autoComplete?: boolean;
maxLength?: number;
className?: string;
};
}

const Input = React.forwardRef<HTMLInputElement, Props>(
(
Expand Down

0 comments on commit 5cd011f

Please sign in to comment.