blob: fc66227cc1676b31717b2390c93595862ca497f6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
import { Component } from 'react';
import PropTypes from 'prop-types';
import { inject, observer } from 'mobx-react';
import Invite from '../../components/auth/Invite';
class InviteScreen extends Component {
render() {
const { actions } = this.props;
return <Invite onSubmit={actions.user.invite} embed={false} />;
}
}
InviteScreen.propTypes = {
actions: PropTypes.shape({
user: PropTypes.shape({
invite: PropTypes.func.isRequired,
}).isRequired,
}).isRequired,
};
export default inject('stores', 'actions')(observer(InviteScreen));
|