Skip to content

Commit 32325ae

Browse files
committed
feat: button update
1 parent 7b83f31 commit 32325ae

3 files changed

Lines changed: 6 additions & 8 deletions

File tree

apps/evm/src/components/Notice/index.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ export const Notice = ({
2626
}: NoticeProps) => (
2727
<div
2828
className={cn(
29-
'relative bg-background rounded-lg border transition-colors overflow-hidden',
29+
'relative rounded-lg border transition-colors overflow-hidden',
3030
(variant === 'info' || variant === 'loading') && 'border-lightGrey',
31-
variant === 'error' && 'border-red',
31+
variant === 'error' && 'bg-red/10 backdrop-blur-lg border-red',
3232
variant === 'success' && 'border-green',
3333
variant === 'warning' && 'border-orange',
3434
className,
@@ -40,7 +40,6 @@ export const Notice = ({
4040
'flex transition-colors ease-linear px-3 py-2',
4141
size === 'md' && 'md:px-4 md:py-3',
4242
variant === 'info' && 'bg-blue/5',
43-
variant === 'error' && 'bg-red/5',
4443
variant === 'success' && 'bg-green/5',
4544
variant === 'warning' && 'bg-orange/5',
4645
)}

apps/evm/src/libs/errors/ContractErrorNotice/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ export const ContractErrorNotice: React.FC<ContractErrorNoticeProps> = ({
2424
const headline = friendlyPhrase ?? t('contractErrors.notice.fallback');
2525

2626
return (
27-
<div className="space-y-3">
28-
<p className="text-sm">{headline}</p>
27+
<div className="space-y-2">
28+
<p className="text-sm text-white">{headline}</p>
2929

3030
{!hasFriendlyPhrase && (
31-
<div className="rounded-lg bg-background-active px-3 py-2 font-mono text-xs break-all">
31+
<div className="rounded-lg border border-dark-grey-hover bg-background/50 px-3 py-2 font-mono text-xs break-all">
3232
<span className="text-light-grey">{t('contractErrors.notice.errorLabel')}: </span>
3333
<span className="text-white">{errorName}</span>
3434
{signature && <span className="text-light-grey"> ({signature})</span>}
@@ -49,7 +49,7 @@ export const ContractErrorNotice: React.FC<ContractErrorNoticeProps> = ({
4949
{isRawVisible && (
5050
<pre
5151
className={cn(
52-
'max-h-60 overflow-auto rounded-lg bg-background-active p-3',
52+
'max-h-60 overflow-auto rounded-lg border border-dark-grey-hover bg-background/50 p-3',
5353
'font-mono text-xs text-white whitespace-pre-wrap break-all',
5454
)}
5555
>

apps/evm/src/libs/errors/handleContractError/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ export const handleContractError = ({ error, parsed }: HandleContractErrorInput)
2121

2222
displayNotification({
2323
variant: 'error',
24-
autoClose: false,
2524
description: (
2625
<ContractErrorNotice
2726
friendlyPhrase={friendlyPhrase}

0 commit comments

Comments
 (0)