Skip to content

Commit

Permalink
fix(menu): Wrong type on Menu (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
hachiojidev committed Jan 8, 2021
1 parent 62cb51a commit a83ee2f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/__tests__/widgets/menu.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ it("renders correctly", () => {
login={noop}
logout={noop}
isDark={false}
isMobile
toggleTheme={noop}
langs={langs}
setLang={noop}
Expand Down
1 change: 1 addition & 0 deletions src/widgets/Menu/Panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { PanelProps, PushedProps } from "./types";

interface Props extends PanelProps, PushedProps {
showMenu: boolean;
isMobile: boolean;
}

const StyledPanel = styled.div<{ isPushed: boolean; showMenu: boolean }>`
Expand Down
4 changes: 3 additions & 1 deletion src/widgets/Menu/PanelBody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ import { MenuEntry, LinkLabel } from "./MenuEntry";
import MenuLink from "./MenuLink";
import { PanelProps, PushedProps } from "./types";

interface Props extends PanelProps, PushedProps {}
interface Props extends PanelProps, PushedProps {
isMobile: boolean;
}

const Icons = (IconModule as unknown) as { [key: string]: React.FC<SvgProps> };

Expand Down
1 change: 0 additions & 1 deletion src/widgets/Menu/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ export interface MenuEntry {

export interface PanelProps {
isDark: boolean;
isMobile: boolean;
toggleTheme: (isDark: boolean) => void;
cakePriceUsd?: number;
currentLang: string;
Expand Down

0 comments on commit a83ee2f

Please sign in to comment.