сортировка компонент и страниц

This commit is contained in:
Фролов 2021-07-22 11:43:58 +05:00
parent 745a41a051
commit dd9fc2514d
3 changed files with 7 additions and 5 deletions

View File

@ -1,5 +1,5 @@
import {Layout} from 'antd'
import PageHeader from './Header'
import PageHeader from './PageHeader'
const {Content} = Layout

View File

@ -2,7 +2,7 @@ import { Layout, Button } from 'antd'
import { UserOutlined } from '@ant-design/icons'
import logo from '../images/logo_32.png'
import { Link } from "react-router-dom"
import WellTreeSelector from '../components/WellTreeSelector'
import WellTreeSelector from './WellTreeSelector'
const { Header } = Layout
@ -17,9 +17,11 @@ export default function PageHeader({title='Мониторинг', wellsList}){
return(
<Layout>
<Header className="header">
<img src={logo} alt="АСБ" className="logo"/>
<Link to="/" >
<img src={logo} alt="АСБ" className="logo"/>
</Link>
<WellTreeSelector wellsList={wellsList}/>
<h1 className="title">{title}</h1>
<h1 className="title">{title}</h1>
<Link to="/login" onClick={handleLogout}>
<Button icon={<UserOutlined/>}>
({login}) Выход

View File

@ -1,7 +1,7 @@
import Deposit from './Deposit'
import Cluster from './Cluster'
import Well from "./Well";
import LayoutPortal from './LayoutPortal'
import LayoutPortal from '../components/LayoutPortal'
import {Redirect, Route, Switch} from "react-router-dom";
export default function Main() {