Skip to content

Commit 9bc4ee0

Browse files
committed
feat: remove hardcoded speaker
1 parent 6795144 commit 9bc4ee0

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"start": "react-scripts start",
4242
"build": "react-scripts build",
4343
"test": "react-scripts test",
44+
"test-coverage": "npm run test -- --coverage . --watchAll=false",
4445
"eject": "react-scripts eject"
4546
},
4647
"jest": {

src/components/Navigation/HorizontalMenu.tsx

+5-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ type Props = {
1010
subMenuItems: NavigationItem[];
1111
};
1212

13-
export const HorizontalMenu: FC<React.PropsWithChildren<Props>> = ({ navItems, subMenuItems }) => {
13+
export const HorizontalMenu: FC<React.PropsWithChildren<Props>> = ({
14+
navItems,
15+
subMenuItems,
16+
}) => {
1417
const { width } = useWindowSize();
1518
return (
1619
<>
@@ -22,7 +25,7 @@ export const HorizontalMenu: FC<React.PropsWithChildren<Props>> = ({ navItems, s
2225
</StyledLink>
2326
))}
2427
{subMenuItems.length > 0 && (
25-
<NavMenu href="/" style={{ position: "relative" }}>
28+
<NavMenu style={{ position: "relative" }}>
2629
News{" "}
2730
<SubMenu>
2831
{subMenuItems.map((item) => (

0 commit comments

Comments
 (0)