Move Header.tsx into components directory

develop
Jason Zhu 2023-03-19 13:16:17 +11:00
parent 65f0b56a20
commit bbaec4a027
3 changed files with 15 additions and 13 deletions

View File

@ -1,6 +1,6 @@
import React from 'react'; import React from 'react';
import './App.css'; import './App.css';
import { Header } from './Header'; import Header from './components/Header';
import { Filters } from './Filters'; import { Filters } from './Filters';
import { Pokemon } from './features/Pokedex/Pokemon'; import { Pokemon } from './features/Pokedex/Pokemon';

View File

@ -1,12 +0,0 @@
import React from 'react';
import logo from './assets/poke_logo.png';
export function Header() {
return (
<div>
<div className="poke__logos">
<img src={logo} />
</div>
</div>
);
}

View File

@ -0,0 +1,14 @@
import React from 'react';
import logo from '../assets/poke_logo.png';
const Header = () => {
return (
<div>
<div className="poke__logos">
<img src={logo} alt="Poke Logo" />
</div>
</div>
);
};
export default Header;