@@ -77,7 +91,11 @@ class App extends Component {
)}
/>
-
+
+ (
+
+
+ )}/>
diff --git a/src/components/users/User.js b/src/components/users/User.js
new file mode 100644
index 0000000..d388db5
--- /dev/null
+++ b/src/components/users/User.js
@@ -0,0 +1,29 @@
+import React, { Component } from "react";
+
+class User extends Component {
+ componentDidMount() {
+ this.props.getUser(this.props.match.params.login);
+ }
+
+ render() {
+ const {
+ name,
+ avatar_url,
+ location,
+ bio,
+ blog,
+ login,
+ html_url,
+ followers,
+ following,
+ public_repos,
+ public_gists,
+ hireable
+ } = this.props.user;
+
+ const { loading } = this.props;
+ return {name}
;
+ }
+}
+
+export default User;
diff --git a/src/components/users/UserItem.js b/src/components/users/UserItem.js
index 95d29a0..bf4bc71 100644
--- a/src/components/users/UserItem.js
+++ b/src/components/users/UserItem.js
@@ -1,5 +1,6 @@
import React from 'react';
import PropTypes from 'prop-types';
+import {Link} from 'react-router-dom';
const UserItem = props => {
const { login, avatar_url, html_url } = props.user;
@@ -9,7 +10,7 @@ const UserItem = props => {
{login}
);