-
Notifications
You must be signed in to change notification settings - Fork 0
/
EditPlan.tsx
50 lines (48 loc) · 1.67 KB
/
EditPlan.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import { Breadcrumb, Layout, Row } from "antd"
import { useNavigate } from "react-router-dom"
import { useAppSelector } from "../../hooks"
import { PageHeader } from "@ant-design/pro-components"
import EditCard from "./EditCard"
const EditPlan = () => {
const organization = useAppSelector(state => state.organization.organization)
const navigate = useNavigate()
if (organization.details === undefined) return <></>
const { gas, water, electric } = organization.details
return (
<Layout
style={{
paddingRight: 24,
paddingLeft: 24,
minHeight: 280,
marginTop: "32px"
}}
>
<Row gutter={[16, 16]} >
<Breadcrumb
items={[
{
title: 'Home',
},
{
title: <a>Pages</a>
},
{
title: <a>Edit Organization Plan</a>
}
]}
/>
</Row>
<PageHeader
style={{ paddingLeft: 0 }}
className="site-page-header"
title="Organization Plans"
subTitle="Check and Edit your plans (changes will be available after a month to notify customers)"
onBack={() => navigate("/Dashboard")}
/>
<EditCard data={gas} type="gas" />
<EditCard data={electric} type="electric" />
<EditCard data={water} type="water" />
</Layout>
)
}
export default EditPlan