diff --git a/desafio-react-e-typescript/src/App.tsx b/desafio-react-e-typescript/src/App.tsx index 604da2b..55ca483 100644 --- a/desafio-react-e-typescript/src/App.tsx +++ b/desafio-react-e-typescript/src/App.tsx @@ -1,5 +1,9 @@ import { Router } from "./router"; export const App = () => { - return ; + return ( + <> + + + ); }; diff --git a/desafio-react-e-typescript/src/pages/Contact.tsx b/desafio-react-e-typescript/src/pages/Contact.tsx new file mode 100644 index 0000000..c6fe517 --- /dev/null +++ b/desafio-react-e-typescript/src/pages/Contact.tsx @@ -0,0 +1,3 @@ +export const Contact = () => { + return

Form

; +}; diff --git a/desafio-react-e-typescript/src/pages/Delivery.tsx b/desafio-react-e-typescript/src/pages/Delivery.tsx new file mode 100644 index 0000000..5dcd792 --- /dev/null +++ b/desafio-react-e-typescript/src/pages/Delivery.tsx @@ -0,0 +1,3 @@ +export const Delivery = () => { + return

Entrega

; +}; diff --git a/desafio-react-e-typescript/src/pages/Payments.tsx b/desafio-react-e-typescript/src/pages/Payments.tsx new file mode 100644 index 0000000..26fa249 --- /dev/null +++ b/desafio-react-e-typescript/src/pages/Payments.tsx @@ -0,0 +1,3 @@ +export const Payments = () => { + return

Pagamentos

; +}; diff --git a/desafio-react-e-typescript/src/pages/Privacy.tsx b/desafio-react-e-typescript/src/pages/Privacy.tsx new file mode 100644 index 0000000..ee493c8 --- /dev/null +++ b/desafio-react-e-typescript/src/pages/Privacy.tsx @@ -0,0 +1,3 @@ +export const Privacy = () => { + return

Seguraça e Privacidade

; +}; diff --git a/desafio-react-e-typescript/src/pages/Refund.tsx b/desafio-react-e-typescript/src/pages/Refund.tsx new file mode 100644 index 0000000..830ea05 --- /dev/null +++ b/desafio-react-e-typescript/src/pages/Refund.tsx @@ -0,0 +1,3 @@ +export const Refund = () => { + return

Troca ou Devolução

; +}; diff --git a/desafio-react-e-typescript/src/pages/home.tsx b/desafio-react-e-typescript/src/pages/home.tsx deleted file mode 100644 index 37cf53a..0000000 --- a/desafio-react-e-typescript/src/pages/home.tsx +++ /dev/null @@ -1,3 +0,0 @@ -export const Home = () => { - return

Hello World

; -}; diff --git a/desafio-react-e-typescript/src/router.tsx b/desafio-react-e-typescript/src/router.tsx index c8eb6e2..ec83cc1 100644 --- a/desafio-react-e-typescript/src/router.tsx +++ b/desafio-react-e-typescript/src/router.tsx @@ -1,13 +1,23 @@ import { Routes, Route } from "react-router-dom"; -import { Home } from "./pages/home"; import { About } from "./pages/About"; +import { Payments } from "./pages/Payments"; +import { Delivery } from "./pages/Delivery"; +import { Contact } from "./pages/Contact"; +import { Privacy } from "./pages/Privacy"; +import { Refund } from "./pages/Refund"; export const Router = () => { return ( - - } /> - } /> - + <> + + } /> + } /> + } /> + } /> + } /> + } /> + + ); };