forked from M3-Academy/desafio-react-e-typescript
refactor: substituição do nome Home por Institucional
This commit is contained in:
parent
9108017522
commit
caba3da7f6
@ -1,11 +1,11 @@
|
||||
import React from "react";
|
||||
import ReactDOM from "react-dom";
|
||||
import "./global.scss";
|
||||
import { Home } from "./pages/Home";
|
||||
import { Institucional } from "./pages/Institucional";
|
||||
|
||||
ReactDOM.render(
|
||||
<React.StrictMode>
|
||||
<Home />
|
||||
</React.StrictMode>,
|
||||
document.getElementById("root")
|
||||
<React.StrictMode>
|
||||
<Institucional />
|
||||
</React.StrictMode>,
|
||||
document.getElementById("root")
|
||||
);
|
||||
|
@ -1,15 +0,0 @@
|
||||
import { Header } from "../components/Header/Header";
|
||||
import { Footer } from "../components/Footer/Footer";
|
||||
import { Main } from "../components/Main/Main";
|
||||
|
||||
const Home = () => {
|
||||
return (
|
||||
<>
|
||||
<Header />
|
||||
<Main />
|
||||
<Footer />
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export { Home };
|
15
src/pages/Institucional.tsx
Normal file
15
src/pages/Institucional.tsx
Normal file
@ -0,0 +1,15 @@
|
||||
import { Header } from "../components/Header/Header";
|
||||
import { Footer } from "../components/Footer/Footer";
|
||||
import { Main } from "../components/Main/Main";
|
||||
|
||||
const Institucional = () => {
|
||||
return (
|
||||
<>
|
||||
<Header />
|
||||
<Main />
|
||||
<Footer />
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export { Institucional };
|
Loading…
x
Reference in New Issue
Block a user