File tree 3 files changed +10
-2
lines changed
3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -28,3 +28,5 @@ yarn-error.log*
28
28
.env.development.local
29
29
.env.test.local
30
30
.env.production.local
31
+
32
+ /.idea /
Original file line number Diff line number Diff line change 1
1
import { Nav , Navbar } from "react-bootstrap" ;
2
2
import Link from "next/link" ;
3
3
import SourceCodeLink from "./sourceCodeLink" ;
4
+ import { useRouter } from "next/router" ;
4
5
5
6
export default function Header ( ) {
7
+ const router = useRouter ( ) ;
8
+
6
9
return (
7
10
< Navbar >
8
- < Nav >
11
+ < Nav activeKey = { router . pathname } >
9
12
< Link href = "/" passHref >
10
13
< Nav . Link > Home</ Nav . Link >
11
14
</ Link >
Original file line number Diff line number Diff line change @@ -40,7 +40,10 @@ function ValidatedFormControl({
40
40
}
41
41
42
42
export default function BsNativeHtml5 ( ) {
43
- const [ values , setValues ] = useState ( { favoriteNumber : 42 } ) ;
43
+ const [ values , setValues ] = useState ( {
44
+ yourName : "" ,
45
+ favoriteNumber : 42
46
+ } ) ;
44
47
const [ submitted , setSubmitted ] = useState ( { } ) ;
45
48
const [ validated , setValidated ] = useState ( false ) ;
46
49
You can’t perform that action at this time.
0 commit comments