-
Notifications
You must be signed in to change notification settings - Fork 62
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
wp:implementación del challenge #68
base: master
Are you sure you want to change the base?
Conversation
<Switch> | ||
<Route exact path="/" component={ ContainerListGiphy } /> | ||
<Route path="/favorites" component={ ContainerGiphysFavorites } /> | ||
<Route path='*' component={NotFound} /> |
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.
Not necessary to specify a path, if you live the path empty it will always match, and because the Route is at the end of the switch it will work as expected.
import {BrowserRouter, Switch, Route} from "react-router-dom"; | ||
import ContainerListGiphy from './giphy/container/container-list-giphy'; | ||
import ContainerGiphysFavorites from './giphy-favorite/container/container-giphys-favorites'; | ||
import NotFound from './giphy/components/not-found'; | ||
import './App.css'; |
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.
Use styled components instead of global css
export default function ListGiphy(props){ | ||
return( | ||
<React.Fragment> | ||
<div className="container-giphy" onClick={props.handleOpenModal}> |
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.
use styled components here
No description provided.