kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Update path to "Explorer"
rodzic
754fa6e761
commit
6dd9050e6c
|
@ -162,7 +162,7 @@ const SidebarNavigation = () => {
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<SidebarNavigationLink
|
<SidebarNavigationLink
|
||||||
to='/search'
|
to='/explorer'
|
||||||
icon={rocketIcon}
|
icon={rocketIcon}
|
||||||
text={<FormattedMessage id='tabs_bar.search' defaultMessage='Explorer' />}
|
text={<FormattedMessage id='tabs_bar.search' defaultMessage='Explorer' />}
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -86,7 +86,7 @@ const ThumbNavigation: React.FC = (): JSX.Element => {
|
||||||
<ThumbNavigationLink
|
<ThumbNavigationLink
|
||||||
src={rocketIcon}
|
src={rocketIcon}
|
||||||
text={<FormattedMessage id='navigation.search' defaultMessage='Explorer' />}
|
text={<FormattedMessage id='navigation.search' defaultMessage='Explorer' />}
|
||||||
to='/search'
|
to='/explorer'
|
||||||
exact
|
exact
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|
|
@ -259,7 +259,7 @@ const Header: React.FC<IHeader> = ({ account }) => {
|
||||||
|
|
||||||
const onSearch = () => {
|
const onSearch = () => {
|
||||||
dispatch(setSearchAccount(account.id));
|
dispatch(setSearchAccount(account.id));
|
||||||
history.push('/search');
|
history.push('/explorer');
|
||||||
};
|
};
|
||||||
|
|
||||||
const onAvatarClick = () => {
|
const onAvatarClick = () => {
|
||||||
|
|
|
@ -76,7 +76,7 @@ const SearchZapSplit = (props: ISearchZapSplit) => {
|
||||||
dispatch(setSearchAccount(null));
|
dispatch(setSearchAccount(null));
|
||||||
dispatch(submitSearch());
|
dispatch(submitSearch());
|
||||||
|
|
||||||
history.push('/search');
|
history.push('/explorer');
|
||||||
} else {
|
} else {
|
||||||
dispatch(submitSearch());
|
dispatch(submitSearch());
|
||||||
}
|
}
|
||||||
|
|
|
@ -88,7 +88,7 @@ const Search = (props: ISearch) => {
|
||||||
dispatch(setSearchAccount(null));
|
dispatch(setSearchAccount(null));
|
||||||
dispatch(submitSearch());
|
dispatch(submitSearch());
|
||||||
|
|
||||||
history.push('/search');
|
history.push('/explorer');
|
||||||
} else {
|
} else {
|
||||||
dispatch(submitSearch());
|
dispatch(submitSearch());
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,7 +38,7 @@ const TrendsPanel = ({ limit }: ITrendsPanel) => {
|
||||||
<Widget
|
<Widget
|
||||||
title={<FormattedMessage id='trends.title' defaultMessage='Trends' />}
|
title={<FormattedMessage id='trends.title' defaultMessage='Trends' />}
|
||||||
action={
|
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'>
|
<Text tag='span' theme='primary' size='sm' className='hover:underline'>
|
||||||
{intl.formatMessage(messages.viewAll)}
|
{intl.formatMessage(messages.viewAll)}
|
||||||
</Text>
|
</Text>
|
||||||
|
|
|
@ -261,7 +261,7 @@ const SwitchingColumnsArea: React.FC<ISwitchingColumnsArea> = ({ children }) =>
|
||||||
|
|
||||||
<WrappedRoute path='/notifications' page={DefaultPage} component={Notifications} content={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.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.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} />}
|
{features.profileDirectory && <WrappedRoute path='/directory' exact publicRoute page={DefaultPage} component={Directory} content={children} />}
|
||||||
|
|
Ładowanie…
Reference in New Issue