about summary refs log tree commit diff
path: root/app/javascript/mastodon/features/getting_started/containers
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2019-08-06 17:57:52 +0200
committerGitHub <noreply@github.com>2019-08-06 17:57:52 +0200
commit9072fe5ab6464cc9c7a871d388464c7afcf41cd0 (patch)
treeb3b379a4eeebc56825a6374f854e73b35678da6c /app/javascript/mastodon/features/getting_started/containers
parent82d2069c75071138f582503c39b0996cc4cdff11 (diff)
Add trends UI with admin and user settings (#11502)
Diffstat (limited to 'app/javascript/mastodon/features/getting_started/containers')
-rw-r--r--app/javascript/mastodon/features/getting_started/containers/trends_container.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/app/javascript/mastodon/features/getting_started/containers/trends_container.js b/app/javascript/mastodon/features/getting_started/containers/trends_container.js
new file mode 100644
index 000000000..1df3fb4fe
--- /dev/null
+++ b/app/javascript/mastodon/features/getting_started/containers/trends_container.js
@@ -0,0 +1,13 @@
+import { connect } from 'react-redux';
+import { fetchTrends } from '../../../actions/trends';
+import Trends from '../components/trends';
+
+const mapStateToProps = state => ({
+  trends: state.getIn(['trends', 'items']),
+});
+
+const mapDispatchToProps = dispatch => ({
+  fetchTrends: () => dispatch(fetchTrends()),
+});
+
+export default connect(mapStateToProps, mapDispatchToProps)(Trends);