Delete SearchResultsContainer

This commit is contained in:
Alex Gleason 2022-05-14 13:20:21 -05:00
parent 88404f32b6
commit 640a6ab8eb
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7
3 changed files with 3 additions and 15 deletions

View file

@ -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();

View file

@ -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>
);