Skip to content

Commit 3461b83

Browse files
committed
tests(earn): use semantic success/error icon colors in toast mocks
1 parent 2337506 commit 3461b83

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

app/components/UI/Earn/hooks/useMerklClaimStatus.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ describe('useMerklClaimStatus', () => {
105105
variant: ToastVariants.Icon as const,
106106
iconName: IconName.CheckBold,
107107
hasNoTimeout: false,
108-
iconColor: mockTheme.colors.icon.default,
108+
iconColor: mockTheme.colors.success.default,
109109
backgroundColor: mockTheme.colors.background.default,
110110
hapticsType: NotificationFeedbackType.Success,
111111
labelOptions: [{ label: 'Your mUSD is here!', isBold: true }],
@@ -114,7 +114,7 @@ describe('useMerklClaimStatus', () => {
114114
variant: ToastVariants.Icon as const,
115115
iconName: IconName.CircleX,
116116
hasNoTimeout: false,
117-
iconColor: mockTheme.colors.icon.default,
117+
iconColor: mockTheme.colors.error.default,
118118
backgroundColor: mockTheme.colors.background.default,
119119
hapticsType: NotificationFeedbackType.Error,
120120
labelOptions: [{ label: 'Bonus claim failed', isBold: true }],

app/components/UI/Earn/hooks/useMusdConversionStatus.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ describe('useMusdConversionStatus', () => {
137137
variant: ToastVariants.Icon as const,
138138
iconName: IconName.CheckBold,
139139
hasNoTimeout: false,
140-
iconColor: mockTheme.colors.icon.default,
140+
iconColor: mockTheme.colors.success.default,
141141
backgroundColor: mockTheme.colors.background.default,
142142
hapticsType: NotificationFeedbackType.Success,
143143
labelOptions: [{ label: 'Success', isBold: true }],
@@ -146,7 +146,7 @@ describe('useMusdConversionStatus', () => {
146146
variant: ToastVariants.Icon as const,
147147
iconName: IconName.Danger,
148148
hasNoTimeout: false,
149-
iconColor: mockTheme.colors.icon.default,
149+
iconColor: mockTheme.colors.error.default,
150150
backgroundColor: mockTheme.colors.background.default,
151151
hapticsType: NotificationFeedbackType.Error,
152152
labelOptions: [{ label: 'Failed', isBold: true }],
@@ -166,7 +166,7 @@ describe('useMusdConversionStatus', () => {
166166
variant: ToastVariants.Icon as const,
167167
iconName: IconName.CheckBold,
168168
hasNoTimeout: false,
169-
iconColor: mockTheme.colors.icon.default,
169+
iconColor: mockTheme.colors.success.default,
170170
backgroundColor: mockTheme.colors.background.default,
171171
hapticsType: NotificationFeedbackType.Success,
172172
labelOptions: [{ label: 'Success', isBold: true }],
@@ -175,7 +175,7 @@ describe('useMusdConversionStatus', () => {
175175
variant: ToastVariants.Icon as const,
176176
iconName: IconName.Danger,
177177
hasNoTimeout: false,
178-
iconColor: mockTheme.colors.icon.default,
178+
iconColor: mockTheme.colors.error.default,
179179
backgroundColor: mockTheme.colors.background.default,
180180
hapticsType: NotificationFeedbackType.Error,
181181
labelOptions: [{ label: 'Bonus claim failed', isBold: true }],
@@ -186,7 +186,7 @@ describe('useMusdConversionStatus', () => {
186186
variant: ToastVariants.Icon as const,
187187
iconName: IconName.Danger,
188188
hasNoTimeout: false,
189-
iconColor: mockTheme.colors.icon.default,
189+
iconColor: mockTheme.colors.error.default,
190190
backgroundColor: mockTheme.colors.background.default,
191191
hapticsType: NotificationFeedbackType.Error,
192192
labelOptions: [{ label: 'Withdrawal failed', isBold: true }],

0 commit comments

Comments
 (0)