This commit is contained in:
dv 2026-04-09 12:26:50 +03:00
parent 581a03e29d
commit 8f189d05d4

View file

@ -1,4 +1,6 @@
import { import {
ControlOutlined,
DatabaseOutlined,
DeleteOutlined, DeleteOutlined,
EditOutlined, EditOutlined,
PlusOutlined, PlusOutlined,
@ -13,6 +15,7 @@ import {
Checkbox, Checkbox,
Col, Col,
Collapse, Collapse,
Segmented,
Divider, Divider,
Form, Form,
Input, Input,
@ -262,9 +265,19 @@ export function ObjectsPage({ mode }: Props) {
marginBottom: 16, marginBottom: 16,
}} }}
> >
<Typography.Title level={4} style={{ margin: 0 }}> <Space align="center" size={16}>
{mode === 'inventory' ? 'Инвентарь — Объекты' : 'Работа — Объекты'} <Typography.Title level={4} style={{ margin: 0 }}>
</Typography.Title> {mode === 'inventory' ? 'Инвентарь — Объекты' : 'Работа — Объекты'}
</Typography.Title>
<Segmented
value={mode}
options={[
{ label: 'Инвентарь', value: 'inventory', icon: <DatabaseOutlined /> },
{ label: 'Работа', value: 'work', icon: <ControlOutlined /> },
]}
onChange={(val) => navigate(val === 'inventory' ? '/inventory/objects' : '/work/objects')}
/>
</Space>
<Space> <Space>
<Input.Search <Input.Search
placeholder="Поиск по названию, городу, клиенту..." placeholder="Поиск по названию, городу, клиенту..."