Bernardstanislas
9/11/2015 - 8:43 AM

Translation closure

Translation closure

module.exports = React.createClass({
    mixins: [cartridgeBehaviour, mixinTrad],
    displayName: 'tdbEntreprise',
    cartridgeConfiguration(){
        const translation = this.i18n('entreprise.monEntrepriseMin');
        return {
            cartridge: {component: React.createClass({
                render() {return (<div><h2>{translation}</h2></div>); }
            })},
            actions: {
                primary: [],
                secondary: []
            }
        };
    },
    render(){
        return (
            <div className = 'row'>
                <Block title="entreprise.monEntrepriseMaj"></Block>
                <Block title="entreprise.suiviDesTCA"></Block>
            </div>
        );
    }
});