Skip to content

Challenge Started.#61

Open
charlybanya wants to merge 13 commits into
wizelineacademy:masterfrom
charlybanya:master
Open

Challenge Started.#61
charlybanya wants to merge 13 commits into
wizelineacademy:masterfrom
charlybanya:master

Conversation

@charlybanya

Copy link
Copy Markdown

No description provided.

Cristopher Mendoza and others added 11 commits July 7, 2018 09:27
-- Reducers and actions created to manage state of GifList and SearchBar
-- Placeholder routes added to the project
-- First saga added to retrieve Giphy API data
-- Test strings added as components placeholder
-- Functionality to add or remove gifs from favorites, completed with actions, reducers and sagas
-- Display favorite gifs view, Added, still need a way to update the content after a gif is removed from favorites
-- GifElement component, Added
…ch of favorites

-- Search into favorites, Completed with actions and reducers
-- SearchBars unified.
-- FavSearchBar deleted from components, reducers and actions.
-- NavBar styled
Comment thread src/App.js Outdated
render() {
return (
<Provider store={store}>
<div className='App'>

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

you can create a styled component here

Comment thread src/App.style.js Outdated
font-size: 17px;
`;

injectGlobal`

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

create another file that's called global.style.js and then import it in App.js

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Thanks for the feedback.

I'll do it, right now!

Cristopher Mendoza added 2 commits July 11, 2018 17:50
-- App reformat for testing purposes.
-- Working on Component testing
-- Working on Component Testing
Comment thread src/App.js
<Switch>
<Route path='/home' component={Home} />
<Route path='/favorites' component={Favorites} />
<Redirect to={{

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

👍

Comment thread src/App.js
<HeadLink to='/favorites' activeClassName='active'>Favorites</HeadLink>
</NavBar>
</header>
<Switch>

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

👍

Comment thread src/App.style.js
overflow: hidden;
`;

export const HeadLink = styled(NavLink)`

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

👍

const Favorites = (props) => {
const { favoritedGifs } = props;
return (
<Fragment>

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

👍

@Robfz Robfz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Great job! Only thing missing was the persistence of the favorites.


test('should call "fetchApi" function to get trending gifs', () => {
const firstYield = generatorGetTrendingGifs.next().value;
expect(firstYield).toEqual(call(fetchApi, trendingResource));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

💯

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.

4 participants