Skip to content

Commit

Permalink
fix: use as prop on MenuButton to fix types (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
cball authored Sep 30, 2020
1 parent 6f9ee75 commit adae31d
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions template/components/Nav.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
import React from 'react';
import { Link, Stack, useBreakpoint, MenuButton, Menu, MenuList, MenuItem } from '@chakra-ui/core';
import {
Link,
Stack,
useBreakpoint,
Button,
MenuButton,
Menu,
MenuList,
MenuItem,
} from '@chakra-ui/core';
import NextLink from 'next/link';

export function Nav() {
Expand All @@ -8,7 +17,7 @@ export function Nav() {

return isMobile ? (
<Menu>
<MenuButton variant="outline" colorScheme="lightPurple" ml="auto">
<MenuButton as={Button} variant="outline" colorScheme="lightPurple" ml="auto">
=
</MenuButton>

Expand Down

0 comments on commit adae31d

Please sign in to comment.