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
|
@ -8,7 +8,7 @@ interface IMenuProps {
|
|||
children: React.ReactNode[] | React.ReactNode
|
||||
}
|
||||
|
||||
export const Menu: React.FC<IMenuProps> = (props) => {
|
||||
export function Menu(props: IMenuProps): JSX.Element {
|
||||
const visible = props.isOpen ? 'visible opacity-1' : 'invisible opacity-0';
|
||||
return (
|
||||
<div
|
||||
|
@ -17,7 +17,7 @@ export const Menu: React.FC<IMenuProps> = (props) => {
|
|||
left: props.x,
|
||||
top: props.y
|
||||
}}>
|
||||
{ props.children }
|
||||
{props.children}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue