From 408b2df5f9df7bdb4c8db472bb0d799b46fb9d08 Mon Sep 17 00:00:00 2001
From: Johanna Szepanski <johanna.szepanski@softhouse.se>
Date: Tue, 11 Jun 2024 09:31:51 +0200
Subject: [PATCH] moved loader above action buttons to comply with Template
 design

---
 src/components/IOC/CreateIOC/CreateIOC.js | 18 ++++++++----------
 1 file changed, 8 insertions(+), 10 deletions(-)

diff --git a/src/components/IOC/CreateIOC/CreateIOC.js b/src/components/IOC/CreateIOC/CreateIOC.js
index 40186ad1..6b057a8c 100644
--- a/src/components/IOC/CreateIOC/CreateIOC.js
+++ b/src/components/IOC/CreateIOC/CreateIOC.js
@@ -209,10 +209,14 @@ export function CreateIOC() {
         )}
 
         {error ? (
-          <Alert severity="error">{getErrorMessage(error)}</Alert>
-        ) : (
-          <></>
-        )}
+          <Alert severity="error">{renderErrorMessage(error)}</Alert>
+        ) : null}
+        {loading ? (
+          <LinearProgress
+            aria-busy="true"
+            aria-label="Creating IOC, please wait"
+          />
+        ) : null}
         <Stack
           direction="row"
           justifyContent="flex-end"
@@ -237,12 +241,6 @@ export function CreateIOC() {
             Create
           </Button>
         </Stack>
-        {loading ? (
-          <LinearProgress
-            aria-busy="true"
-            aria-label="Creating IOC, please wait"
-          />
-        ) : null}
       </Stack>
     </RootPaper>
   );
-- 
GitLab