Dilafruz-17 - App State Management - #6
Open
Dilafruz-17 wants to merge 4 commits into
Open
Conversation
✅ Deploy Preview for bejewelled-narwhal-df5d36 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
✅ Deploy Preview for cute-raindrop-bf5cda ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
aleksey-drozdov
suggested changes
May 31, 2026
| @@ -0,0 +1,36 @@ | |||
| import { ApiResponse, PokemonDetail } from '../types'; | |||
| @@ -0,0 +1,36 @@ | |||
| import { ApiResponse, PokemonDetail } from '../types'; | |||
|
|
|||
| const BASE_URL = 'https://pokeapi.co/api/v2'; | |||
| } | ||
|
|
||
| function CardList({ pokemons, error, onCardClick }: CardListProps) { | ||
| if (error) { |
There was a problem hiding this comment.
move error to parent component
| import { clearAll } from '../../store/selectedSlice'; | ||
| import { PokemonDetail } from '../../types'; | ||
|
|
||
| function downloadCSV(items: PokemonDetail[]) { |
|
|
||
| const handleSearch = () => { | ||
| const trimmed = inputValue.trim(); | ||
| setValue(trimmed); |
| /> | ||
| <button className="search-bar__button" onClick={handleSearch}> | ||
| <span>Search</span> | ||
| <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2.5"> |
There was a problem hiding this comment.
move svg to assets/images/icon.svg and import
| @@ -0,0 +1,18 @@ | |||
| import { Component } from 'react'; | |||
|
|
|||
| class Spinner extends Component { | |||
|
|
||
| const page = parseInt(searchParams.get('page') ?? '1'); | ||
|
|
||
| const [pokemons, setPokemons] = useState<PokemonDetail[]>([]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Task
https://github.com/rolling-scopes-school/tasks/blob/master/tasks/react/state-management.md
Screenshot
Deployment
https://cute-raindrop-bf5cda.netlify.app/
Done 18.05.2026 / Deadline 26.05.2026
Score: 100 / 100
Feature 1: State Management (35/35)
Feature 2: Selected Items (25/25)
Feature 3: Flyout (15/15)
Feature 4: CSV Download (10/10)
Feature 5: Theme (15/15)