feat(form): created initial component

This commit is contained in:
Henrique Santos Santana 2022-12-31 11:16:04 -03:00
parent f6467ab964
commit 517c370373
4 changed files with 14 additions and 2 deletions

View File

@ -0,0 +1,11 @@
export function Contact() {
return (
<section>
<div>
<h2 className="title">
Preencha o formulário
</h2>
</div>
</section>
)
}

View File

@ -2,6 +2,7 @@ import { useMemo } from 'react'
import { Outlet, Route, Routes } from 'react-router-dom'
import { Breadcrumb } from '../../components/Breadcrumb'
import { About } from '../../pages/Institutional/About'
import { Contact } from '../../pages/Institutional/Contact'
import { Footer } from '../../template/Footer'
import { Header } from '../../template/Header'
import { Sidebar } from '../../template/Sidebar'
@ -47,7 +48,7 @@ export function Router() {
}
>
<Route index element={<About />} />
<Route path="/contact" element={<h2>Preencha o formulário</h2>} />
<Route path="/contact" element={<Contact />} />
<Route path="/payments" element={<h2>Formas de pagamentos</h2>} />
<Route path="/exchange" element={<h2>Troca e Devolução</h2>} />
<Route path="/privacity" element={<h2>Privacidade</h2>} />

View File

@ -11,7 +11,7 @@ export function Sidebar() {
{ name: 'Entrega', path: '/shipping' },
{ name: 'Troca e Devolução', path: '/exchange' },
{ name: 'Segurança e Privacidade', path: '/privacity' },
{ name: 'Contact', path: '/contact' },
{ name: 'Contato', path: '/contact' },
]
return (