From 81ef21a0c802f1d905f37a2a818544a8b400793c Mon Sep 17 00:00:00 2001 From: Renaud Chaput Date: Sat, 25 Feb 2023 14:34:32 +0100 Subject: [Glitch] Rename JSX files with proper `.jsx` extension Port 44a7d87cb1f5df953b6c14c16c59e2e4ead1bcb9 to glitch-soc Signed-off-by: Claire --- .../flavours/glitch/features/explore/statuses.js | 64 ---------------------- 1 file changed, 64 deletions(-) delete mode 100644 app/javascript/flavours/glitch/features/explore/statuses.js (limited to 'app/javascript/flavours/glitch/features/explore/statuses.js') diff --git a/app/javascript/flavours/glitch/features/explore/statuses.js b/app/javascript/flavours/glitch/features/explore/statuses.js deleted file mode 100644 index 21768dd24..000000000 --- a/app/javascript/flavours/glitch/features/explore/statuses.js +++ /dev/null @@ -1,64 +0,0 @@ -import React from 'react'; -import PropTypes from 'prop-types'; -import ImmutablePropTypes from 'react-immutable-proptypes'; -import StatusList from 'flavours/glitch/components/status_list'; -import { FormattedMessage } from 'react-intl'; -import { connect } from 'react-redux'; -import { fetchTrendingStatuses, expandTrendingStatuses } from 'flavours/glitch/actions/trends'; -import { debounce } from 'lodash'; -import DismissableBanner from 'flavours/glitch/components/dismissable_banner'; - -const mapStateToProps = state => ({ - statusIds: state.getIn(['status_lists', 'trending', 'items']), - isLoading: state.getIn(['status_lists', 'trending', 'isLoading'], true), - hasMore: !!state.getIn(['status_lists', 'trending', 'next']), -}); - -export default @connect(mapStateToProps) -class Statuses extends React.PureComponent { - - static propTypes = { - statusIds: ImmutablePropTypes.list, - isLoading: PropTypes.bool, - hasMore: PropTypes.bool, - multiColumn: PropTypes.bool, - dispatch: PropTypes.func.isRequired, - }; - - componentDidMount () { - const { dispatch } = this.props; - dispatch(fetchTrendingStatuses()); - } - - handleLoadMore = debounce(() => { - const { dispatch } = this.props; - dispatch(expandTrendingStatuses()); - }, 300, { leading: true }); - - render () { - const { isLoading, hasMore, statusIds, multiColumn } = this.props; - - const emptyMessage = ; - - return ( - <> - - - - - - - ); - } - -} -- cgit