From 2abed31bdedd9b88bb56c3d12767b70583e59260 Mon Sep 17 00:00:00 2001 From: Vinix Date: Fri, 24 Oct 2025 18:44:08 +0700 Subject: [PATCH] fix field + role user --- .../master/device/component/CardDevice.jsx | 84 ------------------- .../component/DetailPlantSection.jsx | 20 +++-- src/pages/user/component/DetailUser.jsx | 83 +++++++++++++++--- 3 files changed, 84 insertions(+), 103 deletions(-) delete mode 100644 src/pages/master/device/component/CardDevice.jsx diff --git a/src/pages/master/device/component/CardDevice.jsx b/src/pages/master/device/component/CardDevice.jsx deleted file mode 100644 index eb2ad74..0000000 --- a/src/pages/master/device/component/CardDevice.jsx +++ /dev/null @@ -1,84 +0,0 @@ -import React from 'react'; -import { Card, Button, Row, Col, Typography, Space, Tag } from 'antd'; -import { EditOutlined, DeleteOutlined, EyeOutlined } from '@ant-design/icons'; - -const { Text } = Typography; - -const CardDevice = ({ data, showPreviewModal, showEditModal, showDeleteDialog }) => { - const getCardStyle = () => { - const color = '#FF8C42'; // Orange color - return { - border: `2px solid ${color}`, - borderRadius: '8px', - textAlign: 'center' // Center text - }; - }; - - const getTitleStyle = () => { - const backgroundColor = '#FF8C42'; // Orange color - return { - backgroundColor, - color: '#fff', - padding: '2px 8px', - borderRadius: '4px', - display: 'inline-block', - }; - }; - - return ( - - {data.map((item) => ( - - - {item.device_name} - - } - style={getCardStyle()} - actions={[ - -