Skip to content

Solution: Alvaro Merino and Miguel Perez #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 56 commits into
base: main
Choose a base branch
from

Conversation

MiguelPerezMartinez
Copy link

Solution for the Reactjs-todo-list exercise

@danilucaci danilucaci self-requested a review May 28, 2021 11:03
Copy link
Contributor

@danilucaci danilucaci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Muy buen proyecto! 👏🏻👏🏻 Felicidades!

Comment on lines +11 to +13
import * as api from "./api";

// import * as api from "./api";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Esta parte se debería eliminar y usar el import

</section>
</main>
</Router>
</>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

El Fragment se puede quitar ya que el Router es un container ya

/>
</Route>
</Switch>
<footer className={darkMode ? "dark" : ""}>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

El footer se podría extraer a un componente y renderizarlo en cada página.

@@ -0,0 +1,30 @@
@import url("https://fonts.googleapis.com/css2?family=Signika&display=swap");

.text__normal--check {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Muy buen uso de BEM! 👏🏻👏🏻

align-items: center;
}

.container__hashtag > div > div {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Este selector es demasiado especifico. Una solución más optima es poner la clase directamente en el div final. La gran desventaja de este selector es que estamos ligando el CSS a la estructura del HTML y si queremos cambiar el HTML tendremos que cambiar el selector también.

darkMode,
...props
}) {
function isDisplayed() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

El nombre de la función debería cambiarse a algo como handleDisplayChange ya que isDisplayed representa normalmente una variable de tipo boolean que indica si está activo o no en este caso.

changeHashtag={changeHashtag}
/>
</li>
</>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

El Fragment se puede quitar ya que el li es un contenedor ya

Comment on lines +7 to +22
font-family: Arial, Helvetica, sans-serif;
}
html,
body,
#root,
.App {
width: 100%;
height: 100%;
}

body {
display: flex;
flex-direction: column;
}

main {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Los espacios entre bloques de CSS deberían ser más uniformes con una línea en blanco entre cada bloque.

height: 20px;
border-radius: 4px;
margin: 0 0.5rem;
//align-self: stretch;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commented code should not be pushed to GitHub.


import * as api from "./api";

// import * as api from "./api";

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commented code should not be pushed to GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants