-
Notifications
You must be signed in to change notification settings - Fork 47
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
base: main
Are you sure you want to change the base?
Solution: Alvaro Merino and Miguel Perez #3
Conversation
There was a problem hiding this 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!
import * as api from "./api"; | ||
|
||
// import * as api from "./api"; |
There was a problem hiding this comment.
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> | ||
</> |
There was a problem hiding this comment.
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" : ""}> |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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() { |
There was a problem hiding this comment.
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> | ||
</> |
There was a problem hiding this comment.
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
font-family: Arial, Helvetica, sans-serif; | ||
} | ||
html, | ||
body, | ||
#root, | ||
.App { | ||
width: 100%; | ||
height: 100%; | ||
} | ||
|
||
body { | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
|
||
main { |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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"; |
There was a problem hiding this comment.
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.
Solution for the Reactjs-todo-list exercise