Skip to content
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

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open

wp:implementación del challenge #68

wants to merge 12 commits into from

Conversation

Zitle-Nancy
Copy link

No description provided.

<Switch>
<Route exact path="/" component={ ContainerListGiphy } />
<Route path="/favorites" component={ ContainerGiphysFavorites } />
<Route path='*' component={NotFound} />
Copy link

@bgilm bgilm Jul 10, 2018

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';

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}>

Choose a reason for hiding this comment

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

use styled components here

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

Successfully merging this pull request may close these issues.

3 participants