diff --git a/src/features/Pokedex/PokemonCard/PokemonCard.css b/src/components/PokemonCard/PokemonCard.css similarity index 98% rename from src/features/Pokedex/PokemonCard/PokemonCard.css rename to src/components/PokemonCard/PokemonCard.css index 55e5e75..7f751dd 100644 --- a/src/features/Pokedex/PokemonCard/PokemonCard.css +++ b/src/components/PokemonCard/PokemonCard.css @@ -28,7 +28,7 @@ html { @font-face { font-family: 'Press Start 2P'; - src: url('../../../assets/PressStart2P-Regular.ttf') format('truetype'); + src: url('../../assets/PressStart2P-Regular.ttf') format('truetype'); } .thumbnail__container { diff --git a/src/features/Pokedex/PokemonCard/PokemonCard.stories.tsx b/src/components/PokemonCard/PokemonCard.stories.tsx similarity index 100% rename from src/features/Pokedex/PokemonCard/PokemonCard.stories.tsx rename to src/components/PokemonCard/PokemonCard.stories.tsx diff --git a/src/features/Pokedex/PokemonCard/PokemonCard.test.ts b/src/components/PokemonCard/PokemonCard.test.ts similarity index 100% rename from src/features/Pokedex/PokemonCard/PokemonCard.test.ts rename to src/components/PokemonCard/PokemonCard.test.ts diff --git a/src/features/Pokedex/PokemonCard/PokemonCard.tsx b/src/components/PokemonCard/PokemonCard.tsx similarity index 100% rename from src/features/Pokedex/PokemonCard/PokemonCard.tsx rename to src/components/PokemonCard/PokemonCard.tsx diff --git a/src/features/Pokedex/PokemonCard/assets/stories/charizard.json b/src/components/PokemonCard/assets/stories/charizard.json similarity index 100% rename from src/features/Pokedex/PokemonCard/assets/stories/charizard.json rename to src/components/PokemonCard/assets/stories/charizard.json diff --git a/src/features/Pokedex/PokemonCard/assets/stories/charizard.svg b/src/components/PokemonCard/assets/stories/charizard.svg similarity index 100% rename from src/features/Pokedex/PokemonCard/assets/stories/charizard.svg rename to src/components/PokemonCard/assets/stories/charizard.svg diff --git a/src/features/Pokedex/PokemonCard/index.ts b/src/components/PokemonCard/index.ts similarity index 100% rename from src/features/Pokedex/PokemonCard/index.ts rename to src/components/PokemonCard/index.ts diff --git a/src/features/Pokedex/PokemonCard/utils.ts b/src/components/PokemonCard/utils.ts similarity index 100% rename from src/features/Pokedex/PokemonCard/utils.ts rename to src/components/PokemonCard/utils.ts diff --git a/src/features/Pokedex/Pokedex.tsx b/src/features/Pokedex/Pokedex.tsx index fae58c7..4868f58 100644 --- a/src/features/Pokedex/Pokedex.tsx +++ b/src/features/Pokedex/Pokedex.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import PokemonCard, { PokemonCardProps } from './PokemonCard'; +import PokemonCard, { PokemonCardProps } from 'components/PokemonCard'; import Filters from './Filters'; import Loading from 'components/Loading'; diff --git a/src/features/Pokedex/types/slice.ts b/src/features/Pokedex/types/slice.ts index 2782b77..3f97e49 100644 --- a/src/features/Pokedex/types/slice.ts +++ b/src/features/Pokedex/types/slice.ts @@ -1,5 +1,5 @@ import { PokemonResponseData } from './api'; -import { PokemonCardProps } from '../PokemonCard'; +import { PokemonCardProps } from 'components/PokemonCard'; export type PokedexState = { regionOptions: RegionPokemonRange[];