From 81b1e0e05919eb368a66aef47adcf7738af76f29 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Fri, 29 Sep 2023 11:47:06 +0200 Subject: refactor(components): rewrite Spinner component * Message should be set as children * Default message is no longer available (depending on use case, the consumer might prefer aria-label instead) * It is now possible to define the message position --- src/pages/recherche/index.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/pages/recherche') diff --git a/src/pages/recherche/index.tsx b/src/pages/recherche/index.tsx index 971d04a..5acf352 100644 --- a/src/pages/recherche/index.tsx +++ b/src/pages/recherche/index.tsx @@ -151,6 +151,11 @@ const SearchPage: NextPageWithLayout = ({ id: 'N804XO', }); const postsListBaseUrl = `${ROUTES.SEARCH}/page/`; + const loadingResults = intl.formatMessage({ + defaultMessage: 'Loading the search results...', + description: 'SearchPage: loading search results message', + id: 'EeCqAE', + }); return ( <> @@ -211,7 +216,7 @@ const SearchPage: NextPageWithLayout = ({ total={totalArticles ?? 0} /> ) : ( - + {loadingResults} )} {error ? (