End of chapter 19
This commit is contained in:
parent
61bd74bc69
commit
5e5ebfc6e9
@ -1,6 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project version="4">
|
|
||||||
<component name="EslintConfiguration">
|
|
||||||
<custom-configuration-file used="true" path="$PROJECT_DIR$/.eslintrc.json" />
|
|
||||||
</component>
|
|
||||||
</project>
|
|
@ -2,7 +2,6 @@
|
|||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="ChangeListManager">
|
<component name="ChangeListManager">
|
||||||
<list default="true" id="5be46653-49b7-409a-9549-21ca1be137cc" name="Default Changelist" comment="">
|
<list default="true" id="5be46653-49b7-409a-9549-21ca1be137cc" name="Default Changelist" comment="">
|
||||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/src/App.js" beforeDir="false" afterPath="$PROJECT_DIR$/src/App.js" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/src/App.js" beforeDir="false" afterPath="$PROJECT_DIR$/src/App.js" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/src/components/users/Search.js" beforeDir="false" afterPath="$PROJECT_DIR$/src/components/users/Search.js" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/src/components/users/Search.js" beforeDir="false" afterPath="$PROJECT_DIR$/src/components/users/Search.js" afterDir="false" />
|
||||||
</list>
|
</list>
|
||||||
@ -49,7 +48,7 @@
|
|||||||
<property name="node.js.path.for.package.jscs" value="project" />
|
<property name="node.js.path.for.package.jscs" value="project" />
|
||||||
<property name="node.js.path.for.package.standard" value="project" />
|
<property name="node.js.path.for.package.standard" value="project" />
|
||||||
<property name="node.js.path.for.package.tslint" value="project" />
|
<property name="node.js.path.for.package.tslint" value="project" />
|
||||||
<property name="node.js.selected.package.eslint" value="$PROJECT_DIR$/node_modules/eslint" />
|
<property name="node.js.selected.package.eslint" value="$USER_HOME$/.nvm/versions/node/v10.16.2/lib/node_modules/eslint" />
|
||||||
<property name="node.js.selected.package.jscs" value="$USER_HOME$/.nvm/versions/node/v8.1.3/lib/node_modules/jscs" />
|
<property name="node.js.selected.package.jscs" value="$USER_HOME$/.nvm/versions/node/v8.1.3/lib/node_modules/jscs" />
|
||||||
<property name="node.js.selected.package.standard" value="$USER_HOME$/.nvm/versions/node/v8.1.3/lib/node_modules/eslint" />
|
<property name="node.js.selected.package.standard" value="$USER_HOME$/.nvm/versions/node/v8.1.3/lib/node_modules/eslint" />
|
||||||
<property name="node.js.selected.package.tslint" value="(autodetect)" />
|
<property name="node.js.selected.package.tslint" value="(autodetect)" />
|
||||||
@ -103,7 +102,7 @@
|
|||||||
<option name="number" value="Default" />
|
<option name="number" value="Default" />
|
||||||
<option name="presentableId" value="Default" />
|
<option name="presentableId" value="Default" />
|
||||||
<updated>1569429914875</updated>
|
<updated>1569429914875</updated>
|
||||||
<workItem from="1569429916226" duration="13411000" />
|
<workItem from="1569429916226" duration="13704000" />
|
||||||
</task>
|
</task>
|
||||||
<task id="LOCAL-00001" summary="End of Chapter 14">
|
<task id="LOCAL-00001" summary="End of Chapter 14">
|
||||||
<created>1569512995385</created>
|
<created>1569512995385</created>
|
||||||
@ -147,7 +146,14 @@
|
|||||||
<option name="project" value="LOCAL" />
|
<option name="project" value="LOCAL" />
|
||||||
<updated>1569579204855</updated>
|
<updated>1569579204855</updated>
|
||||||
</task>
|
</task>
|
||||||
<option name="localTasksCounter" value="7" />
|
<task id="LOCAL-00007" summary="End of chapter 19">
|
||||||
|
<created>1569580419974</created>
|
||||||
|
<option name="number" value="00007" />
|
||||||
|
<option name="presentableId" value="LOCAL-00007" />
|
||||||
|
<option name="project" value="LOCAL" />
|
||||||
|
<updated>1569580419974</updated>
|
||||||
|
</task>
|
||||||
|
<option name="localTasksCounter" value="8" />
|
||||||
<servers />
|
<servers />
|
||||||
</component>
|
</component>
|
||||||
<component name="TypeScriptGeneratedFilesManager">
|
<component name="TypeScriptGeneratedFilesManager">
|
||||||
@ -172,6 +178,7 @@
|
|||||||
<MESSAGE value="End of chapter 16" />
|
<MESSAGE value="End of chapter 16" />
|
||||||
<MESSAGE value="End of chapter 17" />
|
<MESSAGE value="End of chapter 17" />
|
||||||
<MESSAGE value="End of chapter 18" />
|
<MESSAGE value="End of chapter 18" />
|
||||||
<option name="LAST_COMMIT_MESSAGE" value="End of chapter 18" />
|
<MESSAGE value="End of chapter 19" />
|
||||||
|
<option name="LAST_COMMIT_MESSAGE" value="End of chapter 19" />
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
15
src/App.js
15
src/App.js
@ -7,14 +7,13 @@ import axios from "axios";
|
|||||||
import "./App.css";
|
import "./App.css";
|
||||||
|
|
||||||
class App extends Component {
|
class App extends Component {
|
||||||
state = {
|
constructor(props) {
|
||||||
|
super(props);
|
||||||
|
this.state = {
|
||||||
users: [],
|
users: [],
|
||||||
loading: false
|
loading: false
|
||||||
};
|
}
|
||||||
|
}
|
||||||
static propTypes = {
|
|
||||||
searchUsers: PropTypes.func.isRequired
|
|
||||||
};
|
|
||||||
|
|
||||||
/*async componentDidMount() {
|
/*async componentDidMount() {
|
||||||
this.setState({ 'loading': true });
|
this.setState({ 'loading': true });
|
||||||
@ -54,4 +53,8 @@ class App extends Component {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
App.propTypes = {
|
||||||
|
searchUsers: PropTypes.func.isRequired
|
||||||
|
};
|
||||||
|
|
||||||
export default App;
|
export default App;
|
||||||
|
@ -3,9 +3,14 @@ import React, {Component} from 'react';
|
|||||||
|
|
||||||
class Search extends Component {
|
class Search extends Component {
|
||||||
|
|
||||||
state = {
|
|
||||||
|
|
||||||
|
constructor(props) {
|
||||||
|
super(props);
|
||||||
|
this.state = {
|
||||||
text:'martind2000'
|
text:'martind2000'
|
||||||
};
|
}
|
||||||
|
}
|
||||||
|
|
||||||
onChange = e => {
|
onChange = e => {
|
||||||
this.setState({[e.target.name]: e.target.value});
|
this.setState({[e.target.name]: e.target.value});
|
||||||
|
Loading…
Reference in New Issue
Block a user