ref: define state and property types (2)

This commit is contained in:
Lyubo Marinov
2017-11-28 22:03:00 -06:00
parent 379bad0ce6
commit 75bf7638b3
12 changed files with 262 additions and 183 deletions
@@ -226,7 +226,7 @@ class LoginDialog extends Component {
*/
_onLogin() {
const { _conference: conference, dispatch } = this.props;
const { username, password } = this.state;
const { password, username } = this.state;
const jid = toJid(username, this.props._configHosts);
let r;
@@ -11,14 +11,14 @@ import { cancelWaitForOwner, _openLoginDialog } from '../actions';
import styles from './styles';
/**
* WaitForOwnerDialog component's property types.
* The type of the React {@code Component} props of {@link WaitForOwnerDialog}.
*/
type WaitForOwnerDialogPropTypes = {
type Props = {
/**
* The name of the conference room (without the domain part).
*/
_room: String,
_room: string,
/**
* Redux store dispatch function.
@@ -37,7 +37,7 @@ type WaitForOwnerDialogPropTypes = {
*
* See {@link LoginDialog} description for more details.
*/
class WaitForOwnerDialog extends Component<WaitForOwnerDialogPropTypes> {
class WaitForOwnerDialog extends Component<Props> {
/**
* Initializes a new WaitForWonderDialog instance.
*