diff --git a/src/pages/master/brandDevice/component/DetailBrandDevice.jsx b/src/pages/master/brandDevice/component/DetailBrandDevice.jsx index 3507e9a..137bf27 100644 --- a/src/pages/master/brandDevice/component/DetailBrandDevice.jsx +++ b/src/pages/master/brandDevice/component/DetailBrandDevice.jsx @@ -1,5 +1,5 @@ import { useEffect, useState } from 'react'; -import { Modal, Input, Typography, Button, ConfigProvider, Select } from 'antd'; +import { Modal, Input, Divider, Typography, Switch, Button, ConfigProvider, Select } from 'antd'; import { NotifAlert, NotifOk } from '../../../../components/Global/ToastNotif'; const { Text } = Typography; @@ -143,6 +143,14 @@ const DetailBrandDevice = (props) => { }); }; + const handleStatusToggle = (event) => { + const isChecked = event; + setFormData({ + ...FormData, + status: isChecked ? true : false, + }); + }; + useEffect(() => { const token = localStorage.getItem('token'); if (token) { @@ -212,6 +220,34 @@ const DetailBrandDevice = (props) => { > {FormData && (