Add empty preferences page, /settings/preferences
This commit is contained in:
parent
e47c6396f2
commit
1ac1de1d02
3 changed files with 42 additions and 0 deletions
35
app/gabsocial/features/preferences/index.js
Normal file
35
app/gabsocial/features/preferences/index.js
Normal file
|
@ -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 (
|
||||||
|
<Column icon='users' heading={intl.formatMessage(messages.heading)} backBtnSlim />
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -66,6 +66,7 @@ import {
|
||||||
// GroupCreate,
|
// GroupCreate,
|
||||||
// GroupEdit,
|
// GroupEdit,
|
||||||
LoginPage,
|
LoginPage,
|
||||||
|
Preferences,
|
||||||
} from './util/async-components';
|
} from './util/async-components';
|
||||||
import { meUsername } from '../../initial_state';
|
import { meUsername } from '../../initial_state';
|
||||||
|
|
||||||
|
@ -231,6 +232,8 @@ class SwitchingColumnsArea extends React.PureComponent {
|
||||||
|
|
||||||
<WrappedRoute path='/statuses/:statusId' exact component={Status} content={children} componentParams={{ shouldUpdateScroll: this.shouldUpdateScroll }} />
|
<WrappedRoute path='/statuses/:statusId' exact component={Status} content={children} componentParams={{ shouldUpdateScroll: this.shouldUpdateScroll }} />
|
||||||
|
|
||||||
|
<WrappedRoute path='/settings/preferences' layout={LAYOUT.DEFAULT} component={Preferences} content={children} />
|
||||||
|
|
||||||
<WrappedRoute layout={LAYOUT.EMPTY} component={GenericNotFound} content={children} />
|
<WrappedRoute layout={LAYOUT.EMPTY} component={GenericNotFound} content={children} />
|
||||||
</Switch>
|
</Switch>
|
||||||
);
|
);
|
||||||
|
|
|
@ -161,3 +161,7 @@ export function Explore() {
|
||||||
export function LoginPage() {
|
export function LoginPage() {
|
||||||
return import(/* webpackChunkName: "features/auth_login" */'../../auth_login/components/login_page');
|
return import(/* webpackChunkName: "features/auth_login" */'../../auth_login/components/login_page');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function Preferences() {
|
||||||
|
return import(/* webpackChunkName: "features/preferences" */'../../preferences');
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue