Delete SearchResultsContainer
This commit is contained in:
parent
88404f32b6
commit
640a6ab8eb
3 changed files with 3 additions and 15 deletions
|
@ -29,20 +29,8 @@ const messages = defineMessages({
|
|||
|
||||
type SearchFilter = 'accounts' | 'statuses' | 'hashtags';
|
||||
|
||||
interface ISearchResults {
|
||||
value: string,
|
||||
results: ImmutableMap<string, any>,
|
||||
submitted: boolean,
|
||||
expandSearch: (filter: SearchFilter) => void,
|
||||
selectedFilter: SearchFilter,
|
||||
selectFilter: (filter: SearchFilter) => void,
|
||||
suggestions: ImmutableList<any>,
|
||||
trendingStatuses: ImmutableList<any>,
|
||||
trends: ImmutableList<any>,
|
||||
}
|
||||
|
||||
/** Displays search results depending on the active tab. */
|
||||
const SearchResults: React.FC<ISearchResults> = () => {
|
||||
const SearchResults: React.FC = () => {
|
||||
const intl = useIntl();
|
||||
const dispatch = useAppDispatch();
|
||||
|
||||
|
|
Binary file not shown.
|
@ -3,7 +3,7 @@ import { defineMessages, useIntl } from 'react-intl';
|
|||
|
||||
import { Column } from 'soapbox/components/ui';
|
||||
import Search from 'soapbox/features/compose/components/search';
|
||||
import SearchResultsContainer from 'soapbox/features/compose/containers/search_results_container';
|
||||
import SearchResults from 'soapbox/features/compose/components/search_results';
|
||||
|
||||
const messages = defineMessages({
|
||||
heading: { id: 'column.search', defaultMessage: 'Search' },
|
||||
|
@ -16,7 +16,7 @@ const SearchPage = () => {
|
|||
<Column label={intl.formatMessage(messages.heading)}>
|
||||
<div className='space-y-4'>
|
||||
<Search autoFocus autoSubmit />
|
||||
<SearchResultsContainer />
|
||||
<SearchResults />
|
||||
</div>
|
||||
</Column>
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue