diff --git a/package.json b/package.json
index e942371..f1f39f0 100644
--- a/package.json
+++ b/package.json
@@ -1,5 +1,5 @@
{
- "name": "antd-vite-react-sypiu",
+ "name": "antd-vite-react-call-of-duty",
"homepage": "/dashboard/home",
"private": true,
"version": "1.0.0",
diff --git a/src/pages/webControl/IndexWebControl.jsx b/src/pages/webControl/IndexWebControl.jsx
index baeec2f..f48d3ab 100644
--- a/src/pages/webControl/IndexWebControl.jsx
+++ b/src/pages/webControl/IndexWebControl.jsx
@@ -13,7 +13,7 @@ const IndexWebControl = memo(function IndexWebControl() {
const [isPlaying, setIsPlaying] = useState(true);
- const url = "https://117.102.231.130:9531/qrview";
+ const url = "http://localhost:9531/qrview";
const handleReset = async() => {
setIsPlaying(false);
diff --git a/src/pages/webControl/WebControlBackup.jsx b/src/pages/webControl/WebControlBackup.jsx
new file mode 100644
index 0000000..7d057f5
--- /dev/null
+++ b/src/pages/webControl/WebControlBackup.jsx
@@ -0,0 +1,168 @@
+import React, { useState, useEffect, useRef, memo } from 'react';
+import { useNavigate } from 'react-router-dom';
+import { Button, Typography, message } from 'antd';
+import { resetWA } from '../../api/web-control';
+import { useBreadcrumb } from '../../layout/LayoutBreadcrumb';
+import { ReloadOutlined } from '@ant-design/icons';
+
+const { Text } = Typography;
+
+const IndexWebControl = memo(function IndexWebControl() {
+ const navigate = useNavigate();
+ const { setBreadcrumbItems } = useBreadcrumb();
+
+ const [isPlaying, setIsPlaying] = useState(true);
+ const [currentUrl, setCurrentUrl] = useState("http://localhost:9531");
+ const iframeRef = useRef(null);
+
+ const handleReset = async() => {
+ setIsPlaying(false);
+ await resetWA();
+ setIsPlaying(true);
+ // Kembali ke halaman login setelah reset
+ setCurrentUrl("https://localhost:9531");
+ message.success('WhatsApp berhasil di-restart');
+ };
+
+ // Fungsi untuk redirect ke QR View
+ const redirectToQRView = () => {
+ setCurrentUrl("https://localhost:9531/qrview");
+ message.info('Redirecting to QR View...');
+ };
+
+ // Fungsi untuk kembali ke login
+ const backToLogin = () => {
+ setCurrentUrl("https://localhost:9531");
+ message.info('Back to login page');
+ };
+
+ useEffect(() => {
+ const token = localStorage.getItem('token');
+ if (token) {
+ setBreadcrumbItems([
+ {
+ title: (
+