From 65f0b56a20fe056e2add00d9182d46301fdc7019 Mon Sep 17 00:00:00 2001 From: Jason Zhu Date: Sun, 19 Mar 2023 12:48:37 +1100 Subject: [PATCH] Fixed location of pokemon card location --- src/App.tsx | 2 +- src/{ => features/Pokedex/Pokemon}/Pokemon.css | 2 +- src/{ => features/Pokedex/Pokemon}/Pokemon.tsx | 2 +- src/features/Pokedex/Pokemon/index.ts | 1 + 4 files changed, 4 insertions(+), 3 deletions(-) rename src/{ => features/Pokedex/Pokemon}/Pokemon.css (96%) rename src/{ => features/Pokedex/Pokemon}/Pokemon.tsx (95%) create mode 100644 src/features/Pokedex/Pokemon/index.ts diff --git a/src/App.tsx b/src/App.tsx index 629a77a..8900cb5 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -2,7 +2,7 @@ import React from 'react'; import './App.css'; import { Header } from './Header'; import { Filters } from './Filters'; -import { Pokemon } from './Pokemon'; +import { Pokemon } from './features/Pokedex/Pokemon'; function App() { return ( diff --git a/src/Pokemon.css b/src/features/Pokedex/Pokemon/Pokemon.css similarity index 96% rename from src/Pokemon.css rename to src/features/Pokedex/Pokemon/Pokemon.css index f92f421..cba763e 100644 --- a/src/Pokemon.css +++ b/src/features/Pokedex/Pokemon/Pokemon.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/Pokemon.tsx b/src/features/Pokedex/Pokemon/Pokemon.tsx similarity index 95% rename from src/Pokemon.tsx rename to src/features/Pokedex/Pokemon/Pokemon.tsx index 9476241..3e7d19d 100644 --- a/src/Pokemon.tsx +++ b/src/features/Pokedex/Pokemon/Pokemon.tsx @@ -1,6 +1,6 @@ import React from 'react'; import './Pokemon.css'; -import charizard from './assets/charizard.svg'; +import charizard from '../../../assets/charizard.svg'; export function Pokemon() { return ( diff --git a/src/features/Pokedex/Pokemon/index.ts b/src/features/Pokedex/Pokemon/index.ts new file mode 100644 index 0000000..b01cc23 --- /dev/null +++ b/src/features/Pokedex/Pokemon/index.ts @@ -0,0 +1 @@ +export * from './Pokemon';