1
0
Fork 0

fix(search): hide content when `disableUserPersonalization

This commit is contained in:
François Chalifour 2020-07-20 11:40:00 +02:00
parent a40cc0351e
commit 1cec65bbe0

View file

@ -26,11 +26,13 @@ interface StartScreenProps
export function StartScreen(props: StartScreenProps) {
if (props.state.status === 'idle' && props.hasSuggestions === false) {
if (props.disableUserPersonalization) {
return null;
}
return (
<div className="DocSearch-StartScreen">
{!props.disableUserPersonalization && (
<p className="DocSearch-Help">No recent searches</p>
)}
<p className="DocSearch-Help">No recent searches</p>
</div>
);
}