From 2b092cb846e80ad2c104b43ac29043b02b72167b Mon Sep 17 00:00:00 2001 From: Tom Butcher Date: Sat, 30 Aug 2025 23:39:10 +0100 Subject: [PATCH] Removed test action. --- .../Dashboard/Management/Hosts/HostOtp.jsx | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/components/Dashboard/Management/Hosts/HostOtp.jsx b/src/components/Dashboard/Management/Hosts/HostOtp.jsx index fa47936..a5c13d0 100644 --- a/src/components/Dashboard/Management/Hosts/HostOtp.jsx +++ b/src/components/Dashboard/Management/Hosts/HostOtp.jsx @@ -1,6 +1,6 @@ import PropTypes from 'prop-types' import { useContext, useEffect, useState, useRef } from 'react' -import { Input, Result, Typography, Flex, Progress, Button } from 'antd' +import { Input, Result, Typography, Flex, Progress } from 'antd' import { LoadingOutlined } from '@ant-design/icons' import { ApiServerContext } from '../../context/ApiServerContext' import CopyButton from '../../common/CopyButton' @@ -9,7 +9,7 @@ import OTPIcon from '../../../Icons/OTPIcon' const { Text } = Typography const HostOTP = ({ id }) => { - const { fetchHostOTP, sendObjectAction } = useContext(ApiServerContext) + const { fetchHostOTP } = useContext(ApiServerContext) const [hostObject, setHostObject] = useState(null) const [loading, setLoading] = useState(true) const [timeRemaining, setTimeRemaining] = useState(0) @@ -35,13 +35,6 @@ const HostOTP = ({ id }) => { }) } - const sendTestAction = () => { - console.log('Sending test action...') - sendObjectAction(id, 'host', { method: 'testMethod' }, (result) => { - console.log('Got callback', result) - }) - } - useEffect(() => { if (hostObject === null && initialized == false) { setInitialized(true) @@ -85,7 +78,6 @@ const HostOTP = ({ id }) => { return ( - Enter the following one time passcode.}