mirror of
https://github.com/wassname/talk.git
synced 2026-09-12 13:01:11 +08:00
forgot password
This commit is contained in:
@@ -1,12 +1,29 @@
|
||||
import { compose } from 'react-apollo';
|
||||
import { compose, gql } from 'react-apollo';
|
||||
import { bindActionCreators } from 'redux';
|
||||
import { connect } from 'plugin-api/beta/client/hocs';
|
||||
import { connect, withFragments } from 'plugin-api/beta/client/hocs';
|
||||
import ChangePassword from '../components/ChangePassword';
|
||||
import { notify } from 'coral-framework/actions/notification';
|
||||
import { withChangePassword } from 'plugin-api/beta/client/hocs';
|
||||
import {
|
||||
withChangePassword,
|
||||
withForgotPassword,
|
||||
} from 'plugin-api/beta/client/hocs';
|
||||
|
||||
const mapDispatchToProps = dispatch => bindActionCreators({ notify }, dispatch);
|
||||
|
||||
export default compose(connect(null, mapDispatchToProps), withChangePassword)(
|
||||
ChangePassword
|
||||
);
|
||||
const withData = withFragments({
|
||||
root: gql`
|
||||
fragment TalkPluginLocalAuth_ChangePassword_root on RootQuery {
|
||||
me {
|
||||
id
|
||||
email
|
||||
}
|
||||
}
|
||||
`,
|
||||
});
|
||||
|
||||
export default compose(
|
||||
connect(null, mapDispatchToProps),
|
||||
withChangePassword,
|
||||
withForgotPassword,
|
||||
withData
|
||||
)(ChangePassword);
|
||||
|
||||
Reference in New Issue
Block a user