Skip to content

Commit 25ba194

Browse files
fix: build
1 parent d06a866 commit 25ba194

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/course/02- lessons/01-Bronze/StateColocationVsStateLifting/exercise/components/Form.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ export const Form = () => {
2525
// Once completed, head over to Screen.tsx as the Form component will be complaining about a missing prop.
2626
};
2727

28-
// 💣 We can get rid of the eslint line once we start using the type param.
29-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
3028
const onPokemonTypeSelection = (type: string) => {
29+
// 💣 We can get rid of this line once we start using the type param.
30+
console.log(type);
3131
// 🧑🏻‍💻 1.e: we need to check IF the selectedPokemonTypes already has the selectedType
3232
// because we need to toggle it on and off. If it is selected, we just setSelectedPokemonTypes with the filtered out type
3333
// if it's not in there then we set the type [...selectedPokemonTypes, type];

src/course/02- lessons/01-Bronze/StateColocationVsStateLifting/exercise/components/PokemonOptions.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ export const PokemonOptions = ({ type }: IPokemonOptions) => {
3232
// 🧑🏻‍💻 2.j: call onPokemonSelection(selectedPokemon, type);
3333
};
3434

35-
// 💣 Can remove this comment once the code has been written
36-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
3735
const togglePokemonSelection = (pokemonId: string) => {
36+
// 💣 We can get rid of this line once we start using the type param.
37+
console.log(pokemonId);
3838
// 🧑🏻‍💻 2.g: We need to now update the state for when a pokemon card is selected or not.
3939
// IF selectedPokemon includes the pokemonId then we need to de-select that pokemon card.
4040
// ELSE we add the pokemon id to the array of pokemon cards [...selectedPokemon, pokemonId] and then setSelectedPokemon(newValues) (make this a variable as we will need it for later.)

0 commit comments

Comments
 (0)