ComposerTextarea → AutosuggestTextarea

This commit is contained in:
Thibaut Girka
2019-04-21 12:44:30 +02:00
committed by ThibG
parent a243567a3e
commit 47faf47ed5
10 changed files with 351 additions and 500 deletions

View File

@ -0,0 +1,15 @@
import { connect } from 'react-redux';
import AutosuggestAccount from '../components/autosuggest_account';
import { makeGetAccount } from 'flavours/glitch/selectors';
const makeMapStateToProps = () => {
const getAccount = makeGetAccount();
const mapStateToProps = (state, { id }) => ({
account: getAccount(state, id),
});
return mapStateToProps;
};
export default connect(makeMapStateToProps)(AutosuggestAccount);