fix(search): hide content when `disableUserPersonalization
This commit is contained in:
parent
a40cc0351e
commit
1cec65bbe0
1 changed files with 5 additions and 3 deletions
|
|
@ -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>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue