mirror of
https://github.com/vale981/Vulcan
synced 2025-03-11 21:16:40 -04:00
18 lines
No EOL
315 B
JavaScript
18 lines
No EOL
315 B
JavaScript
const CurrentUserContainer = React.createClass({
|
|
|
|
mixins: [ReactMeteorData],
|
|
|
|
getMeteorData() {
|
|
|
|
return {
|
|
currentUser: Meteor.user()
|
|
};
|
|
},
|
|
|
|
render() {
|
|
return React.cloneElement(this.props.children, { currentUser: this.data.currentUser });
|
|
}
|
|
|
|
});
|
|
|
|
module.exports = CurrentUserContainer; |