diff --git a/app/search/templates/django-fbr.html b/app/search/templates/django-fbr.html index f0eee2b..3373765 100644 --- a/app/search/templates/django-fbr.html +++ b/app/search/templates/django-fbr.html @@ -279,39 +279,32 @@

{% endif %} {% else %} {% if form.is_bound %} -

There are no matching results

-

- Improve your search results by: -

- -

Related searches

-

- Try these related search terms. -

- +

There are no matching results

+

Improve your results by:

+ + +
+ + Help with searching + +
+

You can use:

+ +
+
{% endif %} {% endif %} diff --git a/react_front_end/src/App.js b/react_front_end/src/App.js index 34ee515..6b0edcf 100644 --- a/react_front_end/src/App.js +++ b/react_front_end/src/App.js @@ -23,7 +23,7 @@ function App() { const [sortQuery, setSortQuery] = useQueryParams("sort", ["recent"]) const [pageQuery, setPageQuery] = useQueryParams("page", [1]) - const [searchInput, setSearchInput] = useState(searchQuery[0]) // Set initial state to query parameter value + const [searchInput, setSearchInput] = useState(searchQuery[0] || "") // Set initial state to query parameter value const [data, setData] = useState([]) const [isLoading, setIsLoading] = useState(true) const [isSearchSubmitted, setIsSearchSubmitted] = useState(false) diff --git a/react_front_end/src/components/NoResultsContent.js b/react_front_end/src/components/NoResultsContent.js index b25563c..2623c0d 100644 --- a/react_front_end/src/components/NoResultsContent.js +++ b/react_front_end/src/components/NoResultsContent.js @@ -2,32 +2,31 @@ function NoResultsContent() { return ( <>

There are no matching results

-

Improve your search results by:

+

Improve your results by:

-

Related searches

-

Try these related search terms.

- + +
+ + Help with searching + +
+

You can use:

+ +
+
) }