From cf7864d7f5057d7c2682522b8cc17f1811843d64 Mon Sep 17 00:00:00 2001 From: Shipow Date: Thu, 2 Apr 2020 22:41:49 +0200 Subject: [PATCH] fix(design): no results, empty screen + details --- src/EmptyScreen/EmptyScreen.tsx | 10 +++++----- src/NoResults/NoResults.tsx | 12 +++++------- src/style.css | 27 +++++++++++++++++++-------- 3 files changed, 29 insertions(+), 20 deletions(-) diff --git a/src/EmptyScreen/EmptyScreen.tsx b/src/EmptyScreen/EmptyScreen.tsx index 159ef3fe2..2722ef0ad 100644 --- a/src/EmptyScreen/EmptyScreen.tsx +++ b/src/EmptyScreen/EmptyScreen.tsx @@ -6,6 +6,8 @@ import { import { RecentDocSearchHit } from '../types'; +import { ResetIcon } from '../SearchBox/ResetIcon'; + interface EmptyScreenProps extends AutocompleteApi< RecentDocSearchHit, @@ -22,8 +24,8 @@ interface EmptyScreenProps export function EmptyScreen(props: EmptyScreenProps) { if (props.state.status === 'idle' && props.hasSuggestions === false) { return ( -
-

Select results and your history will appear here.

+
+

Your search history will appear here.

); } @@ -117,9 +119,7 @@ export function EmptyScreen(props: EmptyScreenProps) { props.onAction(item); }} > - - - +
diff --git a/src/NoResults/NoResults.tsx b/src/NoResults/NoResults.tsx index 147d4e705..e4f3d7a0c 100644 --- a/src/NoResults/NoResults.tsx +++ b/src/NoResults/NoResults.tsx @@ -20,8 +20,8 @@ interface NoResultsProps export function NoResults(props: NoResultsProps) { return (
-

- No results for “{props.state.query}“. +

+ No results for "{props.state.query}".

@@ -32,7 +32,6 @@ export function NoResults(props: NoResultsProps) { (acc, search) => [ ...acc, acc.length > 0 ? ', ' : '', - '“', , - '“', ], [] )} - . +  ...

-

- If you believe this query should return results, please{' '} +

+ If you believe this query should return results,
please{' '}