Skip to content

Commit

Permalink
fix: lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
LMArts committed Oct 31, 2023
1 parent 3a38455 commit 44d603a
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions website/components/menubar.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ const MenuBar = props => {
const [showMenuDropdown, setShowMenuDropdown] = useState(false);
const documentationMenu = useRef(null);
const [closeMenu, setCloseMenu] = useState(true);

const megadraftUrl = "https://draftjs.slack.com/messages/megadraft/";
const githubUrl = "https://github.com/globocom/megadraft";
const targetBlank = "_blank";
Expand Down Expand Up @@ -77,16 +76,10 @@ const MenuBar = props => {
Documentation
</Button>
<MenuDropDown {...dropDownData} />
<Button
href={megadraftUrl}
target={targetBlank}
>
<Button href={megadraftUrl} target={targetBlank}>
Slack channel
</Button>
<Button
href={githubUrl}
target={targetBlank}
>
<Button href={githubUrl} target={targetBlank}>
Repository
</Button>
</Grid>
Expand Down Expand Up @@ -152,6 +145,8 @@ const MenuBar = props => {

const MenuDropDown = props => {
const { documentationMenu, handleRequestClose, showMenuDropdown } = props;
const targetBlank = "_blank";

return (
<Menu
id="simple-menu"
Expand Down

0 comments on commit 44d603a

Please sign in to comment.