From 3c8bf9b7bfcfab3d00c5b1dd138ed18ed0581652 Mon Sep 17 00:00:00 2001 From: Oscar Dominguez Date: Sat, 20 Jul 2019 20:23:29 -0300 Subject: [PATCH] Add loading animation to search page bug 2171 --- src/ui/page/search/view.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ui/page/search/view.jsx b/src/ui/page/search/view.jsx index faeec7bd4..186077f71 100644 --- a/src/ui/page/search/view.jsx +++ b/src/ui/page/search/view.jsx @@ -10,6 +10,7 @@ import Button from 'component/button'; type Props = { search: string => void, + isSearching: boolean, location: UrlLocation, uris: Array, onFeedbackNegative: string => void, @@ -17,7 +18,7 @@ type Props = { }; export default function SearchPage(props: Props) { - const { search, uris, onFeedbackPositive, onFeedbackNegative, location } = props; + const { search, uris, onFeedbackPositive, onFeedbackNegative, location, isSearching } = props; const urlParams = new URLSearchParams(location.search); const urlQuery = urlParams.get('q'); const isValid = isURIValid(urlQuery); @@ -50,6 +51,7 @@ export default function SearchPage(props: Props) {
} headerAltControls={