From 18aa5fe32010c3c2036bb7078d6e41a3452b5ed8 Mon Sep 17 00:00:00 2001 From: VakarisZ Date: Tue, 6 Oct 2020 17:20:26 +0300 Subject: [PATCH] Fixed js warnings --- .../scoutsuite-setup/AWSConfiguration/AWSKeySetup.js | 2 +- .../RunMonkeyPage/scoutsuite-setup/CloudOptions.js | 2 +- .../zerotrust/scoutsuite/ResourceDropdown.js | 3 ++- .../zerotrust/scoutsuite/RuleDisplay.js | 10 +++++++--- .../scoutsuite/ScoutSuiteSingleRuleDropdown.js | 8 ++++---- 5 files changed, 15 insertions(+), 10 deletions(-) diff --git a/monkey/monkey_island/cc/ui/src/components/pages/RunMonkeyPage/scoutsuite-setup/AWSConfiguration/AWSKeySetup.js b/monkey/monkey_island/cc/ui/src/components/pages/RunMonkeyPage/scoutsuite-setup/AWSConfiguration/AWSKeySetup.js index af2cecf8f..f4eada510 100644 --- a/monkey/monkey_island/cc/ui/src/components/pages/RunMonkeyPage/scoutsuite-setup/AWSConfiguration/AWSKeySetup.js +++ b/monkey/monkey_island/cc/ui/src/components/pages/RunMonkeyPage/scoutsuite-setup/AWSConfiguration/AWSKeySetup.js @@ -83,7 +83,7 @@ const getContents = (props) => {
Keys for custom user

1. Open the IAM console at https://console.aws.amazon.com/iam/.

+ target={'_blank'} rel="noopener noreferrer">https://console.aws.amazon.com/iam/.

2. In the navigation pane, choose Users.

3. Choose the name of the user whose access keys you want to create, and then choose the Security credentials tab.

diff --git a/monkey/monkey_island/cc/ui/src/components/pages/RunMonkeyPage/scoutsuite-setup/CloudOptions.js b/monkey/monkey_island/cc/ui/src/components/pages/RunMonkeyPage/scoutsuite-setup/CloudOptions.js index 3e643b361..1e1d83c4a 100644 --- a/monkey/monkey_island/cc/ui/src/components/pages/RunMonkeyPage/scoutsuite-setup/CloudOptions.js +++ b/monkey/monkey_island/cc/ui/src/components/pages/RunMonkeyPage/scoutsuite-setup/CloudOptions.js @@ -20,7 +20,7 @@ const authComponent = new AuthComponent({}) const getContents = (props) => { - const [description, setDescription] = useState("Loading..."); + const [description, setDescription] = useState('Loading...'); const [iconType, setIconType] = useState('spinning-icon'); const [icon, setIcon] = useState(faSync); diff --git a/monkey/monkey_island/cc/ui/src/components/report-components/zerotrust/scoutsuite/ResourceDropdown.js b/monkey/monkey_island/cc/ui/src/components/report-components/zerotrust/scoutsuite/ResourceDropdown.js index 0e2421e56..5149219d7 100644 --- a/monkey/monkey_island/cc/ui/src/components/report-components/zerotrust/scoutsuite/ResourceDropdown.js +++ b/monkey/monkey_island/cc/ui/src/components/report-components/zerotrust/scoutsuite/ResourceDropdown.js @@ -22,7 +22,8 @@ export default function ResourceDropdown(props) {