From b7b1ab9f40d04df00d06bbcd195f0563b5d85688 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louise=20Linn=C3=A9?= Date: Fri, 17 Feb 2023 17:37:22 +0100 Subject: [PATCH] Fix ButtonTrust disabled behaviour --- src/components/ButtonTrust.js | 39 +++++++++++++++++++++-------------- 1 file changed, 24 insertions(+), 15 deletions(-) diff --git a/src/components/ButtonTrust.js b/src/components/ButtonTrust.js index 5ad81bda..f97d1058 100644 --- a/src/components/ButtonTrust.js +++ b/src/components/ButtonTrust.js @@ -12,10 +12,12 @@ import { } from '~/styles/icons'; const useStyles = makeStyles((theme) => ({ - default: { + trustButton: { background: 'transparent', color: theme.palette.common.whiteAlmost, padding: '0', + }, + trustButtonNoTrust: { '& stop:first-of-type': { stopColor: theme.custom.colors.purpleDark, }, @@ -31,7 +33,7 @@ const useStyles = makeStyles((theme) => ({ }, }, }, - oneWayTrust: { + trustButtonOneWay: { '& stop:first-of-type': { stopColor: theme.custom.colors.violet, }, @@ -47,7 +49,7 @@ const useStyles = makeStyles((theme) => ({ }, }, }, - mutualTrust: { + trustButtonMutualTrust: { '& stop:first-of-type': { stopColor: theme.custom.colors.fountainBlue, }, @@ -64,7 +66,12 @@ const useStyles = makeStyles((theme) => ({ }, }, trustButtonDisabled: { - background: theme.custom.gradients.gray, + '& stop:first-of-type': { + stopColor: theme.custom.colors.grayDark, + }, + '& stop:last-of-type': { + stopColor: theme.custom.colors.gray, + }, }, trustButtonContainer: { width: '55px', @@ -103,27 +110,29 @@ const ButtonTrust = ({ return ( - {trustStatus.isPending ? ( - - ) : ( - - + + + {trustStatus.isPending ? ( + + ) : ( - - )} + )} + ); };