diff --git a/src/App.jsx b/src/App.jsx index ae251bd..7eeb525 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -15,7 +15,6 @@ import IndexTag from './pages/master/tag/IndexTag'; import IndexUnit from './pages/master/unit/IndexUnit'; import IndexBrandDevice from './pages/master/brandDevice/IndexBrandDevice'; import AddBrandDevice from './pages/master/brandDevice/AddBrandDevice'; -import IndexPlantSection from './pages/master/plantSection/IndexPlantSection'; import IndexStatus from './pages/master/status/IndexStatus'; import IndexShift from './pages/master/shift/IndexShift'; @@ -41,6 +40,7 @@ import SvgAirDryerB from './pages/home/SvgAirDryerB'; import SvgAirDryerC from './pages/home/SvgAirDryerC'; import IndexHistoryAlarm from './pages/history/alarm/IndexHistoryAlarm'; import IndexHistoryEvent from './pages/history/event/IndexHistoryEvent'; +import IndexPlantSubSection from './pages/master/plantSubSection/IndexPlantSubSection'; const App = () => { return ( @@ -74,7 +74,7 @@ const App = () => { } /> } /> } /> - } /> + } /> } /> } /> diff --git a/src/layout/LayoutMenu.jsx b/src/layout/LayoutMenu.jsx index f52b424..d0d5cfc 100644 --- a/src/layout/LayoutMenu.jsx +++ b/src/layout/LayoutMenu.jsx @@ -93,9 +93,9 @@ const allItems = [ label: 'Master', children: [ { - key: 'master-plant-section', + key: 'master-plant-sub-section', icon: , - label: Plant Sub Section, + label: Plant Sub Section, }, { key: 'master-brand-device', 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={[ - -