From 517661a2377f5ac2ed8dd49a3951c52ddfcdb27c Mon Sep 17 00:00:00 2001 From: zain_arif Date: Wed, 18 Mar 2026 14:58:20 +0700 Subject: [PATCH] fix(icon): change the icon, text & only 1 button --- src/pages/webControl/IndexWebControl.jsx | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/src/pages/webControl/IndexWebControl.jsx b/src/pages/webControl/IndexWebControl.jsx index 500a518..bfd119a 100644 --- a/src/pages/webControl/IndexWebControl.jsx +++ b/src/pages/webControl/IndexWebControl.jsx @@ -3,6 +3,7 @@ import { useNavigate } from 'react-router-dom'; import { Button, Typography } from 'antd'; import { resetWA } from '../../api/web-control'; import { useBreadcrumb } from '../../layout/LayoutBreadcrumb'; +import { ReloadOutlined } from '@ant-design/icons'; const { Text } = Typography; @@ -10,14 +11,10 @@ const IndexWebControl = memo(function IndexWebControl() { const navigate = useNavigate(); const { setBreadcrumbItems } = useBreadcrumb(); - const [isPlaying, setIsPlaying] = useState(false); + const [isPlaying, setIsPlaying] = useState(true); const url = "https://117.102.231.130:9531/qrview"; - const handlePlay = () => { - setIsPlaying(true); - }; - const handleReset = () => { setIsPlaying(false); resetWA(); @@ -45,12 +42,8 @@ const IndexWebControl = memo(function IndexWebControl() {
- - -
@@ -81,7 +74,7 @@ const IndexWebControl = memo(function IndexWebControl() { color: '#888', }} > - Klik Play untuk menjalankan web + Memuat Halaman WhatsApp QR Code
)}