From e16b019b85526e9ddb6d66b4d0f84198ed393d43 Mon Sep 17 00:00:00 2001 From: Shreya Date: Mon, 12 Jul 2021 11:51:03 +0530 Subject: [PATCH] cc: Rename component `InfoField` to `InfoBox` --- .../configuration-components/{InfoField.js => InfoBox.js} | 4 ++-- .../ui/src/components/configuration-components/UiSchema.js | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) rename monkey/monkey_island/cc/ui/src/components/configuration-components/{InfoField.js => InfoBox.js} (85%) diff --git a/monkey/monkey_island/cc/ui/src/components/configuration-components/InfoField.js b/monkey/monkey_island/cc/ui/src/components/configuration-components/InfoBox.js similarity index 85% rename from monkey/monkey_island/cc/ui/src/components/configuration-components/InfoField.js rename to monkey/monkey_island/cc/ui/src/components/configuration-components/InfoBox.js index ec6254943..1542676ce 100644 --- a/monkey/monkey_island/cc/ui/src/components/configuration-components/InfoField.js +++ b/monkey/monkey_island/cc/ui/src/components/configuration-components/InfoBox.js @@ -2,7 +2,7 @@ import * as React from 'react'; import {FontAwesomeIcon} from '@fortawesome/react-fontawesome'; import {faInfoCircle} from '@fortawesome/free-solid-svg-icons/faInfoCircle'; -class InfoField extends React.Component { +class InfoBox extends React.Component { render() { return ( @@ -15,4 +15,4 @@ class InfoField extends React.Component { } } -export default InfoField; +export default InfoBox; diff --git a/monkey/monkey_island/cc/ui/src/components/configuration-components/UiSchema.js b/monkey/monkey_island/cc/ui/src/components/configuration-components/UiSchema.js index 37a89e87c..541132bb4 100644 --- a/monkey/monkey_island/cc/ui/src/components/configuration-components/UiSchema.js +++ b/monkey/monkey_island/cc/ui/src/components/configuration-components/UiSchema.js @@ -1,7 +1,7 @@ import AdvancedMultiSelect from '../ui-components/AdvancedMultiSelect'; import PbaInput from './PbaInput'; import {API_PBA_LINUX, API_PBA_WINDOWS} from '../pages/ConfigurePage'; -import InfoField from './InfoField'; +import InfoBox from './InfoBox'; export default function UiSchema(props) { const UiSchema = { @@ -18,7 +18,7 @@ export default function UiSchema(props) { 'ui:order': ['scope', 'network_analysis'], scope: { info_box: { - 'ui:field': InfoField + 'ui:field': InfoBox }, subnet_scan_list: { format: 'ip-list' @@ -74,7 +74,7 @@ export default function UiSchema(props) { ransomware: { encryption: { info_box: { - 'ui:field': InfoField + 'ui:field': InfoBox }, directories: { // Directory inputs are dynamically hidden