Move Header.tsx into components directory
parent
65f0b56a20
commit
bbaec4a027
|
@ -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';
|
||||||
|
|
||||||
|
|
|
@ -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>
|
|
||||||
);
|
|
||||||
}
|
|
|
@ -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;
|
Loading…
Reference in New Issue