mirror of
https://github.com/wassname/talk.git
synced 2026-06-29 17:38:00 +08:00
29 lines
821 B
JavaScript
29 lines
821 B
JavaScript
import { compose, gql } from 'react-apollo';
|
|
import { bindActionCreators } from 'redux';
|
|
import { connect, withFragments } from 'plugin-api/beta/client/hocs';
|
|
import DeleteMyAccount from '../components/DeleteMyAccount';
|
|
import { notify } from 'coral-framework/actions/notification';
|
|
import { withRequestAccountDeletion, withCancelAccountDeletion } from '../hocs';
|
|
|
|
const mapDispatchToProps = dispatch => bindActionCreators({ notify }, dispatch);
|
|
|
|
const withData = withFragments({
|
|
root: gql`
|
|
fragment Talk_DeleteMyAccount_root on RootQuery {
|
|
me {
|
|
scheduledDeletionDate
|
|
}
|
|
settings {
|
|
organizationContactEmail
|
|
}
|
|
}
|
|
`,
|
|
});
|
|
|
|
export default compose(
|
|
connect(null, mapDispatchToProps),
|
|
withRequestAccountDeletion,
|
|
withCancelAccountDeletion,
|
|
withData
|
|
)(DeleteMyAccount);
|