Update browser and nav bar title on language change (#275)
This commit is contained in:
@@ -58,7 +58,7 @@ const SearchAll: React.FC = () => {
|
||||
useEffect(() => {
|
||||
setTitle(t('search.title.global_search'));
|
||||
setAction(<AppbarSearch />);
|
||||
}, []);
|
||||
}, [t]);
|
||||
|
||||
useEffect(() => {
|
||||
client
|
||||
@@ -161,7 +161,7 @@ const SearchAll: React.FC = () => {
|
||||
/>
|
||||
</>,
|
||||
);
|
||||
}, [shownLangs, sources]);
|
||||
}, [t, shownLangs, sources]);
|
||||
|
||||
if (query) {
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user