aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/ui/Header.js
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/src/ui/Header.js')
-rw-r--r--vnext/src/ui/Header.js22
1 files changed, 11 insertions, 11 deletions
diff --git a/vnext/src/ui/Header.js b/vnext/src/ui/Header.js
index 6cf07844..cee24c67 100644
--- a/vnext/src/ui/Header.js
+++ b/vnext/src/ui/Header.js
@@ -1,19 +1,19 @@
-import { memo, useCallback } from 'react';
-import { Link, useNavigate } from 'react-router-dom';
+import { memo, useCallback } from 'react'
+import { Link, useNavigate } from 'react-router-dom'
-import SearchBox from './SearchBox';
+import SearchBox from './SearchBox'
function Header() {
- const navigate = useNavigate();
+ const navigate = useNavigate()
/**
* @param {string} searchString
*/
let searchAll = useCallback((searchString) => {
- let location = {};
- location.pathname = '/discover';
- location.search = `?search=${searchString}`;
- navigate(location);
- }, [navigate]);
+ let location = {}
+ location.pathname = '/discover'
+ location.search = `?search=${searchString}`
+ navigate(location)
+ }, [navigate])
return (
<div id="header">
<div id="header_wrapper">
@@ -25,7 +25,7 @@ function Header() {
</div>
</div>
</div>
- );
+ )
}
-export default memo(Header);
+export default memo(Header)