From 3d06020d5dd632a1ff26d3ce7389e0138e6d6e56 Mon Sep 17 00:00:00 2001 From: LautaroCesso <59095036+LautaroCesso@users.noreply.github.com> Date: Fri, 1 May 2020 14:56:49 -0300 Subject: [PATCH] Add loading in AreYouSure component. (#771) --- client/src/app-components/are-you-sure.js | 81 ++++++++++++++++--- client/src/app-components/are-you-sure.scss | 8 +- client/src/app-components/ticket-viewer.js | 2 +- .../settings/admin-panel-advanced-settings.js | 4 +- 4 files changed, 80 insertions(+), 15 deletions(-) diff --git a/client/src/app-components/are-you-sure.js b/client/src/app-components/are-you-sure.js index eea92f55..e3d3d266 100644 --- a/client/src/app-components/are-you-sure.js +++ b/client/src/app-components/are-you-sure.js @@ -6,6 +6,7 @@ import ModalContainer from 'app-components/modal-container'; import Button from 'core-components/button'; import Input from 'core-components/input'; import Icon from 'core-components/icon'; +import Loading from 'core-components/loading' class AreYouSure extends React.Component { @@ -24,6 +25,7 @@ class AreYouSure extends React.Component { }; state = { + loading: false, password: '' }; @@ -39,6 +41,7 @@ class AreYouSure extends React.Component { } render() { + const { loading } = this.state; return (