Skip to content

Commit de5cd8f

Browse files
committed
Review comments
1 parent bf29d7a commit de5cd8f

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

dashboard/src/auth/Login.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
import React, { Component } from 'react';
22
import { Button, Container, Form, Icon, Message, Modal } from 'semantic-ui-react';
33

4-
const LoginView = ({username, password, usernameChanged, passwordChanged, doLogin, error}) => (
4+
const LoginView = ({username, password, onUsernameChanged, onPasswordChanged, doLogin, error}) => (
55
<Container>
66
<Form onSubmit={doLogin}>
77
<Form.Field>
88
<label>Name</label>
9-
<input focus="true" value={username} onChange={(e) => usernameChanged(e.target.value)}/>
9+
<input focus="true" value={username} onChange={(e) => onUsernameChanged(e.target.value)}/>
1010
</Form.Field>
1111
<Form.Field>
1212
<label>Password</label>
13-
<input type="password" value={password} onChange={(e) => passwordChanged(e.target.value)}/>
13+
<input type="password" value={password} onChange={(e) => onPasswordChanged(e.target.value)}/>
1414
</Form.Field>
1515
</Form>
1616
{(error) ? <Message error content={error}/> : null}
@@ -36,8 +36,8 @@ class Login extends Component {
3636
error={this.props.error}
3737
username={this.state.username}
3838
password={this.state.password}
39-
usernameChanged={(v) => this.setState({username:v})}
40-
passwordChanged={(v) => this.setState({password:v})}
39+
onUsernameChanged={(v) => this.setState({username:v})}
40+
onPasswordChanged={(v) => this.setState({password:v})}
4141
doLogin={this.handleLogin}
4242
/>
4343
</Modal.Content>

dashboard/src/deployment/DeploymentDetails.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const LoaderBox = styled('span')`
1919
const MemberGroupsView = ({memberGroups, namespace}) => (
2020
<div>
2121
{memberGroups.map((item) => <MemberList
22-
key={`server-group-${item.group}`}
22+
key={item.group}
2323
group={item.group}
2424
members={item.members}
2525
namespace={namespace}

dashboard/src/deployment/DeploymentList.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ function getStateColorDescription(stateColor) {
152152

153153
class DeploymentList extends Component {
154154
state = {
155-
items: undefined,
156-
error: undefined,
155+
items: null,
156+
error: null,
157157
loading: true
158158
};
159159

@@ -168,7 +168,7 @@ class DeploymentList extends Component {
168168
this.setState({
169169
items: result.deployments,
170170
loading: false,
171-
error: undefined
171+
error: null
172172
});
173173
} catch (e) {
174174
this.setState({error: e.message, loading: false});

0 commit comments

Comments
 (0)