From 90d6440467e80501e1454da2acf8243a42691841 Mon Sep 17 00:00:00 2001 From: malmen237 Date: Tue, 23 Apr 2024 07:27:20 +0200 Subject: [PATCH] fix: added new class to spinner and updated action -btn to primary --- src/components/loader/loader.tsx | 8 +++++++- .../manage-productions/manage-productions.tsx | 14 +++++++------- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/src/components/loader/loader.tsx b/src/components/loader/loader.tsx index a51b4183..4fc9c97c 100644 --- a/src/components/loader/loader.tsx +++ b/src/components/loader/loader.tsx @@ -13,7 +13,13 @@ const Loading = styled.div` &.create-production { position: absolute; top: 0.5rem; - left: 6rem; + left: 40%; + } + + &.manage-production { + position: absolute; + top: 0.5rem; + left: 30%; } &.join-production { diff --git a/src/components/manage-productions/manage-productions.tsx b/src/components/manage-productions/manage-productions.tsx index 6d2b2903..60d747d2 100644 --- a/src/components/manage-productions/manage-productions.tsx +++ b/src/components/manage-productions/manage-productions.tsx @@ -4,7 +4,7 @@ import { useEffect, useState } from "react"; import styled from "@emotion/styled"; import { DisplayContainerHeader } from "../landing-page/display-container-header"; import { - ActionButton, + PrimaryButton, DecorativeLabel, FormInput, FormLabel, @@ -49,7 +49,7 @@ const VerifyButtons = styled.div` padding: 1rem 0 0 0; `; -const Button = styled(ActionButton)` +const Button = styled(PrimaryButton)` margin: 0 1rem 0 0; `; @@ -154,14 +154,14 @@ export const ManageProductions = () => { <> Production name: {production.name} {!verifyRemove && ( - setVerifyRemove(true)} > Remove - {deleteLoader && } - + {deleteLoader && } + )} {verifyRemove && ( @@ -174,7 +174,7 @@ export const ManageProductions = () => { onClick={handleSubmit(onSubmit)} > Yes - {deleteLoader && } + {deleteLoader && }