From 6b661d73fdbf338ff581939a5f96d985f3eef123 Mon Sep 17 00:00:00 2001 From: Jean Date: Thu, 12 Mar 2020 12:40:13 -0300 Subject: [PATCH 1/2] =?UTF-8?q?Adiciona=20coment=C3=A1rios=20pertinentes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Backdrop/index.js | 1 + src/components/BoxUser/index.js | 3 +++ src/pages/Home/index.js | 2 ++ 3 files changed, 6 insertions(+) diff --git a/src/components/Backdrop/index.js b/src/components/Backdrop/index.js index aa4c43e..65a5d50 100644 --- a/src/components/Backdrop/index.js +++ b/src/components/Backdrop/index.js @@ -18,4 +18,5 @@ const Backdrop = styled.div` overflow: auto; `; +// Plano de fundo para modal export default Backdrop; diff --git a/src/components/BoxUser/index.js b/src/components/BoxUser/index.js index ebacb7c..310442a 100644 --- a/src/components/BoxUser/index.js +++ b/src/components/BoxUser/index.js @@ -22,6 +22,7 @@ import { Statistics, } from './styles'; +// Card de detalhes do usuário const BoxUser = ({ user, handleClose }) => { const [repositories, setRepositories] = useState([]); const [loading, setLoading] = useState(false); @@ -30,6 +31,7 @@ const BoxUser = ({ user, handleClose }) => { if (user && user.public_repos > 0) { setLoading(true); + // Busca dos repositórios do usuário api .get(`/users/${user.login}/repos`) .then(response => { @@ -46,6 +48,7 @@ const BoxUser = ({ user, handleClose }) => { } }, [user]); + // Verifica se existe um usuário, caso não exista não retorna o componente if (!user) { return null; } diff --git a/src/pages/Home/index.js b/src/pages/Home/index.js index 2139ea9..f1f2677 100644 --- a/src/pages/Home/index.js +++ b/src/pages/Home/index.js @@ -33,6 +33,8 @@ const Home = () => { }), onSubmit: ({ username }) => { setLoading(true); + + // Busca do usuário inserida no form api .get(`/users/${username}`) .then(response => { From 53fd30e6134dc5094cf93fcdaa532730bf0a9a0a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 4 Apr 2020 15:01:35 +0000 Subject: [PATCH 2/2] Bump acorn from 5.7.3 to 5.7.4 Bumps [acorn](https://github.com/acornjs/acorn) from 5.7.3 to 5.7.4. - [Release notes](https://github.com/acornjs/acorn/releases) - [Commits](https://github.com/acornjs/acorn/compare/5.7.3...5.7.4) Signed-off-by: dependabot[bot] --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index 2673f33..023984c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1721,9 +1721,9 @@ acorn-walk@^6.0.1: integrity sha512-7evsyfH1cLOCdAzZAd43Cic04yKydNx0cF+7tiA19p1XnLLPU4dpCQOqpjqwokFe//vS0QqfqqjCS2JkiIs0cA== acorn@^5.5.3: - version "5.7.3" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-5.7.3.tgz#67aa231bf8812974b85235a96771eb6bd07ea279" - integrity sha512-T/zvzYRfbVojPWahDsE5evJdHb3oJoQfFbsrKM7w5Zcs++Tr257tia3BmMP8XYVjp1S9RZXQMh7gao96BlqZOw== + version "5.7.4" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-5.7.4.tgz#3e8d8a9947d0599a1796d10225d7432f4a4acf5e" + integrity sha512-1D++VG7BhrtvQpNbBzovKNc1FLGGEE/oGe7b9xJm/RFHMBeUaUGpluV9RLjZa47YFdPcDAenEYuq9pQPcMdLJg== acorn@^6.0.1, acorn@^6.0.4, acorn@^6.2.1: version "6.4.0"