ee9f63a161
bugfix wip flow fix cleaning clean
19 lines
714 B
JavaScript
19 lines
714 B
JavaScript
import { connect } from 'react-redux';
|
|
import { selectPublishFormValues } from 'redux/selectors/publish';
|
|
import { doUpdatePublishForm } from 'redux/actions/publish';
|
|
import PublishAdditionalOptions from './view';
|
|
import { selectUser, selectAccessToken } from 'redux/selectors/user';
|
|
import { doFetchAccessToken } from 'redux/actions/user';
|
|
|
|
const select = (state) => ({
|
|
...selectPublishFormValues(state),
|
|
accessToken: selectAccessToken(state),
|
|
user: selectUser(state),
|
|
});
|
|
|
|
const perform = (dispatch) => ({
|
|
updatePublishForm: (value) => dispatch(doUpdatePublishForm(value)),
|
|
fetchAccessToken: () => dispatch(doFetchAccessToken()),
|
|
});
|
|
|
|
export default connect(select, perform)(PublishAdditionalOptions);
|