Merged PR 170: Add new eslint rules
- naming-convention - prefer-arrow-callback - func-style - import/no-default-export
This commit is contained in:
parent
3f58c5ba5e
commit
ad126c6c28
65 changed files with 781 additions and 784 deletions
|
@ -6,11 +6,11 @@ interface IMenuItemProps {
|
|||
onClick: () => void
|
||||
}
|
||||
|
||||
export const MenuItem: React.FC<IMenuItemProps> = (props) => {
|
||||
export function MenuItem(props: IMenuItemProps): JSX.Element {
|
||||
return (
|
||||
<button type="button"
|
||||
className={props.className}
|
||||
onClick={() => props.onClick()}>{props.text}
|
||||
</button>
|
||||
);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue