|
1 | 1 | import React, { useCallback, useContext, useMemo } from 'react'; |
2 | 2 | import { ActivityIndicator } from 'react-native'; |
3 | | -import { Box } from '@metamask/design-system-react-native'; |
4 | 3 | import { ToastContext } from '../../../../component-library/components/Toast'; |
5 | 4 | import { |
6 | 5 | ButtonIconVariant, |
@@ -131,9 +130,7 @@ const useRewardsToast = (): { |
131 | 130 | hasNoTimeout: true, |
132 | 131 | hapticsType: NotificationMoment.Warning, |
133 | 132 | startAccessory: ( |
134 | | - <Box twClassName="p-1 mr-2"> |
135 | | - <ActivityIndicator size="small" color={theme.colors.icon.default} /> |
136 | | - </Box> |
| 133 | + <ActivityIndicator size="small" color={theme.colors.icon.default} /> |
137 | 134 | ), |
138 | 135 | labelOptions: getRewardsToastLabels(title), |
139 | 136 | descriptionOptions: getRewardsToastDescriptionLabels(subtitle), |
@@ -189,14 +186,12 @@ const useRewardsToast = (): { |
189 | 186 | hasNoTimeout: true, |
190 | 187 | hapticsType: NotificationMoment.Warning, |
191 | 188 | startAccessory: ( |
192 | | - <Box twClassName="p-1 mr-2"> |
193 | | - <RewardsNotificationIcon |
194 | | - name="notification" |
195 | | - width={24} |
196 | | - height={24} |
197 | | - color={theme.colors.warning.default} |
198 | | - /> |
199 | | - </Box> |
| 189 | + <RewardsNotificationIcon |
| 190 | + name="notification" |
| 191 | + width={24} |
| 192 | + height={24} |
| 193 | + color={theme.colors.warning.default} |
| 194 | + /> |
200 | 195 | ), |
201 | 196 | labelOptions: getRewardsToastLabels( |
202 | 197 | strings('rewards.notifications_nudge.title'), |
@@ -225,14 +220,12 @@ const useRewardsToast = (): { |
225 | 220 | hasNoTimeout: true, |
226 | 221 | hapticsType: NotificationMoment.Success, |
227 | 222 | startAccessory: ( |
228 | | - <Box twClassName="p-1 mr-2"> |
229 | | - <RewardsTrophyIcon |
230 | | - name="trophy" |
231 | | - width={24} |
232 | | - height={24} |
233 | | - color={theme.colors.success.default} |
234 | | - /> |
235 | | - </Box> |
| 223 | + <RewardsTrophyIcon |
| 224 | + name="trophy" |
| 225 | + width={24} |
| 226 | + height={24} |
| 227 | + color={theme.colors.success.default} |
| 228 | + /> |
236 | 229 | ), |
237 | 230 | labelOptions: getRewardsToastLabels(title), |
238 | 231 | descriptionOptions: { description }, |
|
0 commit comments