From 95a42232bbc410053530ab2fb02f5e5a855e6d84 Mon Sep 17 00:00:00 2001 From: VakarisZ Date: Mon, 6 Jan 2020 11:02:36 +0200 Subject: [PATCH] Copied modal into a separate react component --- .../ui-components/StartOverModal.js | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 monkey/monkey_island/cc/ui/src/components/ui-components/StartOverModal.js diff --git a/monkey/monkey_island/cc/ui/src/components/ui-components/StartOverModal.js b/monkey/monkey_island/cc/ui/src/components/ui-components/StartOverModal.js new file mode 100644 index 000000000..057d45779 --- /dev/null +++ b/monkey/monkey_island/cc/ui/src/components/ui-components/StartOverModal.js @@ -0,0 +1,45 @@ +import {Modal} from "react-bootstrap"; +import Modal from "react-bootstrap/es/Modal"; +import ReactComponent from "react"; +import AuthComponent from "../AuthComponent"; + + +class StartOverModal extends ReactComponent { + render = () => { + return ( + this.setState({showCleanDialog: false})}> + +

+
Reset environment
+

+

+ Are you sure you want to reset the environment? +

+ { + !this.state.allMonkeysAreDead ? +
+ + Some monkeys are still running. It's advised to kill all monkeys before resetting. +
+ : +
+ } +
+ + +
+ + + ) + + }; +}