2021-09-16 16:46:04 -07:00
|
|
|
import PropTypes from 'prop-types';
|
2022-01-10 14:17:52 -08:00
|
|
|
import React from 'react';
|
2022-03-17 18:17:28 -07:00
|
|
|
import { withRouter } from 'react-router-dom';
|
2022-01-10 14:25:06 -08:00
|
|
|
|
2021-09-16 16:46:04 -07:00
|
|
|
import Column from 'soapbox/features/ui/components/column';
|
2022-01-10 14:25:06 -08:00
|
|
|
|
2021-09-18 15:05:34 -07:00
|
|
|
import FollowRecommendationsContainer from './components/follow_recommendations_container';
|
2021-09-16 16:46:04 -07:00
|
|
|
|
2022-03-17 18:17:28 -07:00
|
|
|
export default @withRouter
|
|
|
|
class FollowRecommendations extends React.Component {
|
2021-09-16 16:46:04 -07:00
|
|
|
|
2022-03-17 18:17:28 -07:00
|
|
|
static propTypes = {
|
|
|
|
history: PropTypes.object.isRequired,
|
2021-09-16 16:46:04 -07:00
|
|
|
};
|
|
|
|
|
2021-09-18 15:05:34 -07:00
|
|
|
onDone = () => {
|
2022-03-17 18:17:28 -07:00
|
|
|
this.props.history.push('/');
|
2021-09-16 16:46:04 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<Column>
|
2021-09-18 15:05:34 -07:00
|
|
|
<FollowRecommendationsContainer onDone={this.onDone} />
|
2021-09-16 16:46:04 -07:00
|
|
|
</Column>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|