From 55d42d64751340e97a3ed7af3fcb6ec65a3028c5 Mon Sep 17 00:00:00 2001 From: vetalcore Date: Wed, 4 Dec 2024 23:16:54 +0200 Subject: [PATCH] fix: [lw-11875] remove status info from reward activity details --- .../features/activity/components/ActivityDetail.tsx | 1 - .../ui/components/ActivityDetail/RewardsDetails.tsx | 11 ----------- .../ActivityDetail/__tests__/RewardsDetails.test.tsx | 2 -- 3 files changed, 14 deletions(-) diff --git a/apps/browser-extension-wallet/src/views/browser-view/features/activity/components/ActivityDetail.tsx b/apps/browser-extension-wallet/src/views/browser-view/features/activity/components/ActivityDetail.tsx index 4348f6021f..9f0fd03eea 100644 --- a/apps/browser-extension-wallet/src/views/browser-view/features/activity/components/ActivityDetail.tsx +++ b/apps/browser-extension-wallet/src/views/browser-view/features/activity/components/ActivityDetail.tsx @@ -136,7 +136,6 @@ export const ActivityDetail = ({ price }: ActivityDetailProps): ReactElement => return ( string; @@ -32,7 +30,6 @@ export interface RewardsDetailsProps { export const RewardsDetails = ({ name, headerDescription, - status, includedDate, includedTime, amountTransformer, @@ -117,14 +114,6 @@ export const RewardsDetails = ({ )} -
-
- {t('core.activityDetails.status')} -
-
{`${status - .charAt(0) - .toUpperCase()}${status.slice(1)}`}
-
{t('core.activityDetails.epoch')} diff --git a/packages/core/src/ui/components/ActivityDetail/__tests__/RewardsDetails.test.tsx b/packages/core/src/ui/components/ActivityDetail/__tests__/RewardsDetails.test.tsx index 0f24682355..a7bd8aa39d 100644 --- a/packages/core/src/ui/components/ActivityDetail/__tests__/RewardsDetails.test.tsx +++ b/packages/core/src/ui/components/ActivityDetail/__tests__/RewardsDetails.test.tsx @@ -3,13 +3,11 @@ import * as React from 'react'; import { render } from '@testing-library/react'; import '@testing-library/jest-dom'; import { RewardsDetails, RewardsDetailsProps } from '../RewardsDetails'; -import { ActivityStatus } from '../../Transaction'; describe('Testing ActivityDetailsBrowser component', () => { const rewardsDetailsProps: RewardsDetailsProps = { name: 'Name', headerDescription: 'Header Description', - status: ActivityStatus.SPENDABLE, includedDate: 'Date', includedTime: 'Time', amountTransformer: (amount) => `${amount} $`,