@@ -2,19 +2,19 @@ import styles from '../styles/navigation.module.scss'
2
2
import Link from 'next/link'
3
3
4
4
const registerUser = event => {
5
- event . preventDefault ( )
5
+ event . preventDefault ( )
6
6
}
7
7
8
8
export default function Search ( ) {
9
- //export default function Search({updateSearch}) {
10
- return (
11
- < nav id = { styles . navigation } >
12
- < ul >
13
- < Link href = "/" > < a > < li > Home</ li > </ a > </ Link >
14
- < Link href = "/authors" > < a > < li > Authors</ li > </ a > </ Link >
15
- < Link href = "/random" > < a > < li > Random</ li > </ a > </ Link >
16
- < Link href = "/add" > < a > < li > Add</ li > </ a > </ Link >
17
- < li > < form onSubmit = { registerUser } >
9
+ //export default function Search({updateSearch}) {
10
+ return (
11
+ < nav id = { styles . navigation } >
12
+ < ul >
13
+ < Link href = "/" > < a > < li > Home</ li > </ a > </ Link >
14
+ < Link href = "/authors" > < a > < li > Authors</ li > </ a > </ Link >
15
+ < Link href = "/random" > < a > < li > Random</ li > </ a > </ Link >
16
+ < Link href = "/add" > < a > < li > Add</ li > </ a > </ Link >
17
+ { /* <li><form onSubmit={registerUser}>
18
18
<label htmlFor="name">Name</label>
19
19
<input id="name" type="text" onChange={function(event) {
20
20
updateSearch(event.target.value)
@@ -25,8 +25,8 @@ export default function Search() {
25
25
<option value="author">Author</option>
26
26
</select>
27
27
<button type="submit">Search</button>
28
- </ form > </ li >
29
- </ ul >
30
- </ nav >
31
- )
28
+ </form></li> */ }
29
+ </ ul >
30
+ </ nav >
31
+ )
32
32
}
0 commit comments