diff --git a/design-v2/benefits/benefitsForm.jsx b/design-v2/benefits/benefitsForm.jsx
index 4fdc1feb..18978a35 100644
--- a/design-v2/benefits/benefitsForm.jsx
+++ b/design-v2/benefits/benefitsForm.jsx
@@ -1,5 +1,6 @@
import React, { useState, useEffect } from 'react'
import { Button, Modal, TextField } from '@oacore/design/lib'
+import { Spinner } from 'reactstrap'
import styles from './styles.module.scss'
import generateFormMessage from '../../templates/data-providers/utils/generate-form-message'
@@ -42,6 +43,7 @@ const BenefitsForm = React.forwardRef(({ onSubmit, setModalActive }, ref) => {
const [dataProvidersResponse, setDataProvidersResponse] = useState([])
const [modalContent, setModalContent] = useState(null)
const [formSubmitted, setFormSubmitted] = useState(false)
+ const [isLoading, setIsLoading] = useState(false)
const {
value: uri,
@@ -58,10 +60,20 @@ const BenefitsForm = React.forwardRef(({ onSubmit, setModalActive }, ref) => {
const onCloseModal = () => {
setModalActive(false)
}
+
const handleSubmit = async (event) => {
event.preventDefault()
-
+ setIsLoading(true)
if (onSubmit) await onSubmit(event)
+ await checkDataProviders({
+ params: {
+ uri,
+ email,
+ setIsDataProviderAddActive,
+ setDataProvidersResponse,
+ },
+ })
+ setIsLoading(false)
}
const message = generateFormMessage({ dataProvidersResponse })
@@ -178,23 +190,17 @@ const BenefitsForm = React.forwardRef(({ onSubmit, setModalActive }, ref) => {
-
+ {isLoading ? (
+
+ ) : (
+
+ )}
diff --git a/design-v2/benefits/styles.module.scss b/design-v2/benefits/styles.module.scss
index c43738eb..65ddda8e 100644
--- a/design-v2/benefits/styles.module.scss
+++ b/design-v2/benefits/styles.module.scss
@@ -387,6 +387,14 @@ $spacer: 1.5rem;
margin-left: 1rem;
}
}
+
+ .spin-loader {
+ width: 28px;
+ height: 28px;
+ margin-right: 10px;
+ border: 0.2em solid currentcolor;
+ border-right-color: transparent;
+ }
}
.modal-step-form {
diff --git a/pages/about/index.jsx b/pages/about/index.jsx
index 9947cad5..fbf00689 100644
--- a/pages/about/index.jsx
+++ b/pages/about/index.jsx
@@ -209,7 +209,17 @@ const AboutPage = ({ data }) => {
>
-
+
{data.team.title}
@@ -245,17 +255,6 @@ const AboutPage = ({ data }) => {
-
-