diff --git a/src/pages/404.js b/src/pages/404.js index c4a8f01..24b7db2 100644 --- a/src/pages/404.js +++ b/src/pages/404.js @@ -1,7 +1,7 @@ import * as React from "react" -const NotFoundPage = () =>
- Not Found! +const NotFoundPage = () =>
+
404 Not Found !
export default NotFoundPage \ No newline at end of file diff --git a/src/pages/index.js b/src/pages/index.js index 4aba6e0..5645556 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -50,6 +50,10 @@ const Layout = ({children}) =>
const Navigation = ({title, description}) => { const [searchFilter, setSearchFilter] = useAtom(searchFilterAtom) + const clearSearchFilter = e => { + setSearchFilter('') + document.querySelector('#search').focus() + } return
@@ -59,8 +63,12 @@ const Navigation = ({title, description}) => {
- setSearchFilter(e.target.value)} /> - + setSearchFilter(e.target.value)} /> + { + searchFilter == '' ? + : + + }