Skip to content

Commit 86b2535

Browse files
committed
part 7 - fix hooks order error
1 parent 4be997d commit 86b2535

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

  • part7/extended-bloglist-frontend/src/components

part7/extended-bloglist-frontend/src/components/Nav.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import {
77
Spacer,
88
Link,
99
Text,
10-
useColorModeValue,
1110
HStack,
1211
} from "@chakra-ui/react";
1312
import { NavLink } from "react-router-dom";
@@ -23,7 +22,7 @@ const Nav = () => {
2322
});
2423
};
2524
return (
26-
<Box bg={useColorModeValue("gray.100", "gray.900")} px={4}>
25+
<Box bg="gray.200" px={4}>
2726
<Flex padding="5" justify="space-between" align="center">
2827
<Box>
2928
<Heading as={NavLink} to="/" size="md">
@@ -41,7 +40,7 @@ const Nav = () => {
4140
rounded={"md"}
4241
_hover={{
4342
textDecoration: "none",
44-
bg: useColorModeValue("gray.200", "gray.700"),
43+
bg: "gray.400",
4544
}}
4645
to="/blogs"
4746
>
@@ -56,7 +55,7 @@ const Nav = () => {
5655
rounded={"md"}
5756
_hover={{
5857
textDecoration: "none",
59-
bg: useColorModeValue("gray.200", "gray.700"),
58+
bg: "gray.400",
6059
}}
6160
to="/users"
6261
>

0 commit comments

Comments
 (0)