From fde719ce94590272b92f3005724b507c6e3f853f Mon Sep 17 00:00:00 2001 From: vakarisz Date: Fri, 8 Jul 2022 14:41:24 +0300 Subject: [PATCH] UI: Remove last unused method, improve style --- .../cc/ui/src/components/pages/ConfigurePage.js | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/monkey/monkey_island/cc/ui/src/components/pages/ConfigurePage.js b/monkey/monkey_island/cc/ui/src/components/pages/ConfigurePage.js index 872e642c5..154eff52c 100644 --- a/monkey/monkey_island/cc/ui/src/components/pages/ConfigurePage.js +++ b/monkey/monkey_island/cc/ui/src/components/pages/ConfigurePage.js @@ -1,6 +1,6 @@ import React from 'react'; import Form from 'react-jsonschema-form-bs4'; -import {Button, Col, Modal, Nav} from 'react-bootstrap'; +import {Col, Nav} from 'react-bootstrap'; import AuthComponent from '../AuthComponent'; import UiSchema from '../configuration-components/UiSchema'; import {FontAwesomeIcon} from '@fortawesome/react-fontawesome'; @@ -10,7 +10,6 @@ import {formValidationFormats} from '../configuration-components/ValidationForma import transformErrors from '../configuration-components/ValidationErrorMessages'; import UnsafeConfigOptionsConfirmationModal from '../configuration-components/UnsafeConfigOptionsConfirmationModal.js'; -import UnsafeOptionsWarningModal from '../configuration-components/UnsafeOptionsWarningModal.js'; import isUnsafeOptionSelected from '../utils/SafeOptionValidator.js'; import ConfigExportModal from '../configuration-components/ExportConfigModal'; import ConfigImportModal from '../configuration-components/ImportConfigModal'; @@ -109,10 +108,6 @@ class ConfigurePageComponent extends AuthComponent { } } - onUnsafeAttackContinueClick = () => { - this.setState({showUnsafeAttackOptionsWarning: false}); - } - updateConfig = () => { this.authFetch(CONFIG_URL) .then(res => res.json()) @@ -228,12 +223,12 @@ class ConfigurePageComponent extends AuthComponent { resetConfig = () => { this.authFetch(RESET_URL, { - method: 'POST', + method: 'POST' }) .then(res => res.json()) .then(() => { this.setState({ - lastAction: 'reset', + lastAction: 'reset' }); this.updateConfig(); this.props.onStatusChange();