Skip to content

Instantly share code, notes, and snippets.

@Bernardstanislas
Created September 11, 2015 08:43
Show Gist options
  • Save Bernardstanislas/e25af69c861b77ae224f to your computer and use it in GitHub Desktop.
Save Bernardstanislas/e25af69c861b77ae224f to your computer and use it in GitHub Desktop.
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>
);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment