From 8819e6407420779b1923d798d639ef5d2ceed00f Mon Sep 17 00:00:00 2001 From: dominic Date: Fri, 20 Oct 2023 11:43:37 +0100 Subject: [PATCH] refactor: (rewards-button) zero token name to meow --- src/components/rewards-button/index.test.tsx | 12 ++++++------ src/components/rewards-button/index.tsx | 4 ++-- src/components/rewards-container/index.tsx | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/components/rewards-button/index.test.tsx b/src/components/rewards-button/index.test.tsx index 4bc11b92f..bc0f9ea44 100644 --- a/src/components/rewards-button/index.test.tsx +++ b/src/components/rewards-button/index.test.tsx @@ -8,7 +8,7 @@ describe('rewards-button', () => { const allProps: Properties = { isFirstTimeLogin: false, isMessengerFullScreen: false, - zeroPreviousDay: '', + meowPreviousDay: '', isRewardsLoading: false, showRewardsInTooltip: false, showRewardsInPopup: false, @@ -30,14 +30,14 @@ describe('rewards-button', () => { }); it('rewards tooltip popup is not rendered if messenger not fullscreen', function () { - const wrapper = subject({ zeroPreviousDay: '9000000000000000000' }); + const wrapper = subject({ meowPreviousDay: '9000000000000000000' }); const tooltipPopup = wrapper.find(TooltipPopup); expect(tooltipPopup.prop('open')).toBe(false); }); it('rewards tooltip popup is not rendered if first time log in', function () { const wrapper = subject({ - zeroPreviousDay: '9000000000000000000', + meowPreviousDay: '9000000000000000000', isRewardsLoading: false, isFirstTimeLogin: true, }); @@ -47,7 +47,7 @@ describe('rewards-button', () => { it('does not render rewards tooltip popup if not in full screen', function () { const wrapper = subject({ - zeroPreviousDay: '9000000000000000000', + meowPreviousDay: '9000000000000000000', isRewardsLoading: false, showRewardsInTooltip: true, isMessengerFullScreen: false, @@ -58,7 +58,7 @@ describe('rewards-button', () => { it('rewards tooltip popup is rendered upon load', function () { const wrapper = subject({ - zeroPreviousDay: '9000000000000000000', + meowPreviousDay: '9000000000000000000', isRewardsLoading: false, showRewardsInTooltip: true, isMessengerFullScreen: true, @@ -71,7 +71,7 @@ describe('rewards-button', () => { it('calls closeRewardsTooltip if TooltipPopup is closed', function () { const closeRewardsTooltip = jest.fn(); const wrapper = subject({ - zeroPreviousDay: '1000000000000000000', + meowPreviousDay: '1000000000000000000', isRewardsLoading: false, showRewardsInTooltip: true, isMessengerFullScreen: true, diff --git a/src/components/rewards-button/index.tsx b/src/components/rewards-button/index.tsx index 1f4241830..1ff1b7593 100644 --- a/src/components/rewards-button/index.tsx +++ b/src/components/rewards-button/index.tsx @@ -19,7 +19,7 @@ export interface Properties { isMessengerFullScreen: boolean; hasLoadedConversation: boolean; - zeroPreviousDay: string; + meowPreviousDay: string; isRewardsLoading: boolean; showRewardsInTooltip: boolean; showRewardsInPopup: boolean; @@ -35,7 +35,7 @@ export class RewardsButton extends React.Component { open={!this.props.isRewardsLoading && this.props.showRewardsInTooltip && this.props.isMessengerFullScreen} align='center' side='right' - content={`You’ve earned ${formatWeiAmount(this.props.zeroPreviousDay)} MEOW today`} + content={`You’ve earned ${formatWeiAmount(this.props.meowPreviousDay)} MEOW today`} onClose={this.props.closeRewardsTooltip} >
diff --git a/src/components/rewards-container/index.tsx b/src/components/rewards-container/index.tsx index 2d8d2b5f6..b40ff0e9f 100644 --- a/src/components/rewards-container/index.tsx +++ b/src/components/rewards-container/index.tsx @@ -55,7 +55,7 @@ export class RewardsContainer extends React.Component {