Skip to content

Commit

Permalink
Fixed linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
SarthakC committed Oct 11, 2019
1 parent 7afb6a6 commit 4b78a7d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions docs/src/pages/components/menus/ContextMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ import React, { useEffect } from 'react';
import Menu from '@material-ui/core/Menu';
import MenuItem from '@material-ui/core/MenuItem';
import Button from '@material-ui/core/Button';
import PropTypes from 'prop-types';

const ContextMenu = ({ children }) => {
const ContextMenu = () => {
const [anchorEl, setAnchorEl] = React.useState(null);
const [mouseX, setMouseX] = React.useState(null);
const [mouseY, setMouseY] = React.useState(null);
Expand Down Expand Up @@ -55,6 +54,4 @@ const ContextMenu = ({ children }) => {
);
};

ContextMenu.propTypes = {
children: PropTypes.object.isRequired,
};
export default ContextMenu;

0 comments on commit 4b78a7d

Please sign in to comment.