Update path to "Explorer"

merge-requests/3337/head
danidfra 2025-02-23 18:35:32 -03:00
rodzic 754fa6e761
commit 6dd9050e6c
7 zmienionych plików z 7 dodań i 7 usunięć

Wyświetl plik

@ -162,7 +162,7 @@ const SidebarNavigation = () => {
/>
<SidebarNavigationLink
to='/search'
to='/explorer'
icon={rocketIcon}
text={<FormattedMessage id='tabs_bar.search' defaultMessage='Explorer' />}
/>

Wyświetl plik

@ -86,7 +86,7 @@ const ThumbNavigation: React.FC = (): JSX.Element => {
<ThumbNavigationLink
src={rocketIcon}
text={<FormattedMessage id='navigation.search' defaultMessage='Explorer' />}
to='/search'
to='/explorer'
exact
/>

Wyświetl plik

@ -259,7 +259,7 @@ const Header: React.FC<IHeader> = ({ account }) => {
const onSearch = () => {
dispatch(setSearchAccount(account.id));
history.push('/search');
history.push('/explorer');
};
const onAvatarClick = () => {

Wyświetl plik

@ -76,7 +76,7 @@ const SearchZapSplit = (props: ISearchZapSplit) => {
dispatch(setSearchAccount(null));
dispatch(submitSearch());
history.push('/search');
history.push('/explorer');
} else {
dispatch(submitSearch());
}

Wyświetl plik

@ -88,7 +88,7 @@ const Search = (props: ISearch) => {
dispatch(setSearchAccount(null));
dispatch(submitSearch());
history.push('/search');
history.push('/explorer');
} else {
dispatch(submitSearch());
}

Wyświetl plik

@ -38,7 +38,7 @@ const TrendsPanel = ({ limit }: ITrendsPanel) => {
<Widget
title={<FormattedMessage id='trends.title' defaultMessage='Trends' />}
action={
<Link className='text-right' to='/search' onClick={setHashtagsFilter}>
<Link className='text-right' to='/explorer' onClick={setHashtagsFilter}>
<Text tag='span' theme='primary' size='sm' className='hover:underline'>
{intl.formatMessage(messages.viewAll)}
</Text>

Wyświetl plik

@ -261,7 +261,7 @@ const SwitchingColumnsArea: React.FC<ISwitchingColumnsArea> = ({ children }) =>
<WrappedRoute path='/notifications' page={DefaultPage} component={Notifications} content={children} />
<WrappedRoute path='/search' page={SearchPage} component={Search} content={children} publicRoute />
<WrappedRoute path='/explorer' page={SearchPage} component={Search} content={children} publicRoute />
{features.suggestionsLocal && <WrappedRoute path='/suggestions/local' publicRoute page={DefaultPage} component={FollowRecommendations} content={children} componentParams={{ local: true }} />}
{features.suggestions && <WrappedRoute path='/suggestions' exact publicRoute page={DefaultPage} component={FollowRecommendations} content={children} />}
{features.profileDirectory && <WrappedRoute path='/directory' exact publicRoute page={DefaultPage} component={Directory} content={children} />}