Skip to content

Commit

Permalink
Fixed warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
Direside committed Nov 30, 2019
1 parent 757959c commit 3e15f4a
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 28 deletions.
3 changes: 0 additions & 3 deletions internal/ui/src/AWSRegion.js
@@ -1,7 +1,4 @@
import React from 'react';
import Grid from '@material-ui/core/Grid';
import ToggleButton from '@material-ui/lab/ToggleButton';
import ToggleButtonGroup from '@material-ui/lab/ToggleButtonGroup';
import List from '@material-ui/core/List';
import ListItem from '@material-ui/core/ListItem';
import ListItemText from '@material-ui/core/ListItemText';
Expand Down
3 changes: 0 additions & 3 deletions internal/ui/src/Complete.js
@@ -1,9 +1,6 @@
import React from 'react';

export default class Complete extends React.Component {
constructor(props) {
super(props);
}
render() {
if (this.props.success) {
return (
Expand Down
3 changes: 0 additions & 3 deletions internal/ui/src/Frontend.js
Expand Up @@ -6,9 +6,6 @@ import ToggleButtonGroup from '@material-ui/lab/ToggleButtonGroup';


export default class Frontend extends React.Component {
constructor(props) {
super(props);
}
handleChange = (e, v) => {
this.props.setFrontend(v);
}
Expand Down
17 changes: 7 additions & 10 deletions internal/ui/src/GenerateButton.js
Expand Up @@ -2,14 +2,11 @@ import React from 'react';
import Button from '@material-ui/core/Button';

export default class GenerateButton extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<p>
<Button color="primary" variant="contained" onClick={this.props.generate}>Generate</Button>
</p>
)
}
render() {
return (
<p>
<Button color="primary" variant="contained" onClick={this.props.generate}>Generate</Button>
</p>
)
}
}
3 changes: 0 additions & 3 deletions internal/ui/src/Project.js
Expand Up @@ -5,9 +5,6 @@ import TextField from '@material-ui/core/TextField';


export default class Project extends React.Component {
constructor(props) {
super(props);
}
updateName = (event) => {
this.props.setProjectName(event.target.value);
}
Expand Down
2 changes: 0 additions & 2 deletions internal/ui/src/Service.js
Expand Up @@ -5,8 +5,6 @@ import ListItem from '@material-ui/core/ListItem';
import ListItemText from '@material-ui/core/ListItemText';
import MenuItem from '@material-ui/core/MenuItem';
import Menu from '@material-ui/core/Menu';
import { timeout } from 'q';
import { timer } from 'rxjs';

export default class Service extends React.Component {
constructor(props) {
Expand Down
14 changes: 10 additions & 4 deletions internal/ui/src/Services.js
Expand Up @@ -13,13 +13,19 @@ export default class Services extends React.Component {
}

add = () => {
this.state.services.push({ name: "", description: ""});
this.props.setServices(this.state.services);
let services = this.state.services;
services.push({ name: "", description: ""});
this.setState({services: services}, () => {
this.props.setServices(this.state.services);
});
}

update = (index, data) => {
this.state.services[index] = data;
this.props.setServices(this.state.services);
let services = this.state.services;
services[index] = data;
this.setState({services: services}, () => {
this.props.setServices(this.state.services);
});
}
render() {
return (
Expand Down

0 comments on commit 3e15f4a

Please sign in to comment.