Commit 154a7663 authored by Merekeyev Dias's avatar Merekeyev Dias

added Header to layout

parent 0a00d27f
Pipeline #401 canceled with stages
......@@ -4,16 +4,22 @@ import AuthPage from './pages/AuthPage';
import HomePage from './pages/HomePage';
import AddPage from './pages/AddPage';
import './App.css'
import RequestPage from './pages/RequestPage';
import Header from './components/HomePage/Header';
const App: React.FC = () => {
return (
<>
<Header />
<BrowserRouter>
<Routes>
<Route path="/auth" element={<AuthPage />} />
<Route path="/" element={<HomePage />} />
<Route path="/add" element={<AddPage />} />
<Route path='requests' element={<RequestPage />} />
</Routes>
</BrowserRouter>
</>
);
};
......
import React from 'react';
import Home from '../components/HomePage/Home';
import Header from '../components/HomePage/Header';
import '../styles/Home/homePage.css'
const HomePage: React.FC = () => {
return (
<div className='container'>
<Header/>
<Home />
</div>
);
......
import React from 'react';
const RequestPage: React.FC = () => {
return (
<section className='section'>
<div className="data">
<table className="data-table">
<thead>
<tr>
<th>ID</th>
<th>JSON</th>
<th>XML</th>
<th>Дата отправки</th>
<th>Код организации</th>
<th>Метод</th>
<th>Статус</th>
<th>Сообщение об ошибке</th>
<th>Дата переотправки</th>
<th>Количество попыток</th>
<th>Действие</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</section>
);
};
export default RequestPage
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment