Updated status search functionality, Added search/statuses route
• Updated: - status search functionality • Added: - search/statuses route
This commit is contained in:
parent
4bfe7d63bb
commit
c1b4a6f034
|
@ -152,10 +152,10 @@ class Search extends ImmutablePureComponent {
|
|||
</Text>
|
||||
</div>
|
||||
{
|
||||
results.get('statuses').slice(0, size).map((status) => (
|
||||
results.get('statuses').slice(0, size).map((statusId) => (
|
||||
<StatusContainer
|
||||
key={`status-${status.get('id')}`}
|
||||
id={status.get('id')}
|
||||
key={`status-${statusId}`}
|
||||
id={statusId}
|
||||
contextType='search'
|
||||
commentsLimited
|
||||
/>
|
||||
|
|
|
@ -229,6 +229,7 @@ class SwitchingArea extends React.PureComponent {
|
|||
<WrappedRoute path='/search/people' exact publicRoute page={SearchPage} component={Search} content={children} />
|
||||
<WrappedRoute path='/search/hashtags' exact publicRoute page={SearchPage} component={Search} content={children} />
|
||||
<WrappedRoute path='/search/groups' exact publicRoute page={SearchPage} component={Search} content={children} />
|
||||
<WrappedRoute path='/search/statuses' exact publicRoute page={SearchPage} component={Search} content={children} />
|
||||
|
||||
<WrappedRoute path='/settings/blocks' exact page={SettingsPage} component={BlockedAccounts} content={children} componentParams={{ title: 'Blocked Users' }} />
|
||||
<WrappedRoute path='/settings/mutes' exact page={SettingsPage} component={Mutes} content={children} componentParams={{ title: 'Muted Users' }} />
|
||||
|
|
Loading…
Reference in New Issue