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>
|
</Text>
|
||||||
</div>
|
</div>
|
||||||
{
|
{
|
||||||
results.get('statuses').slice(0, size).map((status) => (
|
results.get('statuses').slice(0, size).map((statusId) => (
|
||||||
<StatusContainer
|
<StatusContainer
|
||||||
key={`status-${status.get('id')}`}
|
key={`status-${statusId}`}
|
||||||
id={status.get('id')}
|
id={statusId}
|
||||||
contextType='search'
|
contextType='search'
|
||||||
commentsLimited
|
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/people' exact publicRoute page={SearchPage} component={Search} content={children} />
|
||||||
<WrappedRoute path='/search/hashtags' 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/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/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' }} />
|
<WrappedRoute path='/settings/mutes' exact page={SettingsPage} component={Mutes} content={children} componentParams={{ title: 'Muted Users' }} />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user