diff --git a/app/gabsocial/features/preferences/index.js b/app/gabsocial/features/preferences/index.js new file mode 100644 index 000000000..080dd46b1 --- /dev/null +++ b/app/gabsocial/features/preferences/index.js @@ -0,0 +1,35 @@ +import React from 'react'; +import { connect } from 'react-redux'; +import { defineMessages, injectIntl } from 'react-intl'; +import ImmutablePureComponent from 'react-immutable-pure-component'; +import PropTypes from 'prop-types'; +import Column from '../ui/components/column'; + +const messages = defineMessages({ + heading: { id: 'column.preferences', defaultMessage: 'Preferences' }, +}); + +const mapStateToProps = state => ({}); + +export default @connect(mapStateToProps) +@injectIntl +class Preferences extends ImmutablePureComponent { + + static propTypes = { + dispatch: PropTypes.func.isRequired, + intl: PropTypes.object.isRequired, + }; + + componentWillMount() { + // this.props.dispatch(fetchPreferences()); + } + + render() { + const { intl } = this.props; + + return ( + + ); + } + +} diff --git a/app/gabsocial/features/ui/index.js b/app/gabsocial/features/ui/index.js index 9f72dbb69..969ed379c 100644 --- a/app/gabsocial/features/ui/index.js +++ b/app/gabsocial/features/ui/index.js @@ -66,6 +66,7 @@ import { // GroupCreate, // GroupEdit, LoginPage, + Preferences, } from './util/async-components'; import { meUsername } from '../../initial_state'; @@ -231,6 +232,8 @@ class SwitchingColumnsArea extends React.PureComponent { + + ); diff --git a/app/gabsocial/features/ui/util/async-components.js b/app/gabsocial/features/ui/util/async-components.js index af2fe2fec..ce85789f8 100644 --- a/app/gabsocial/features/ui/util/async-components.js +++ b/app/gabsocial/features/ui/util/async-components.js @@ -161,3 +161,7 @@ export function Explore() { export function LoginPage() { return import(/* webpackChunkName: "features/auth_login" */'../../auth_login/components/login_page'); } + +export function Preferences() { + return import(/* webpackChunkName: "features/preferences" */'../../preferences'); +}