Skip to content

Commit

Permalink
Clean up reporting language from wcpaySettings
Browse files Browse the repository at this point in the history
  • Loading branch information
Nagesh Pai committed Dec 19, 2024
1 parent 5d5fea9 commit bda60b5
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 24 deletions.
6 changes: 0 additions & 6 deletions client/deposits/list/test/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,6 @@ declare const global: {
connect: {
country: string;
};
reporting?: {
exportModalDismissed: boolean;
};
locale: {
code: string;
};
Expand Down Expand Up @@ -142,9 +139,6 @@ describe( 'Deposits list', () => {
precision: 2,
},
},
reporting: {
exportModalDismissed: true,
},
locale: {
code: 'en',
},
Expand Down
6 changes: 0 additions & 6 deletions client/disputes/test/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,6 @@ declare const global: {
precision: number;
};
};
reporting?: {
exportModalDismissed: boolean;
};
locale: {
code: string;
};
Expand Down Expand Up @@ -186,9 +183,6 @@ describe( 'Disputes list', () => {
precision: 2,
},
},
reporting: {
exportModalDismissed: true,
},
locale: {
code: 'en',
},
Expand Down
3 changes: 0 additions & 3 deletions client/globals.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,6 @@ declare global {
storeName: string;
isNextDepositNoticeDismissed: boolean;
isInstantDepositNoticeDismissed: boolean;
reporting: {
exportModalDismissed?: boolean;
};
locale: {
code: string;
english_name: string;
Expand Down
6 changes: 0 additions & 6 deletions client/transactions/list/test/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,6 @@ declare const global: {
precision: number;
};
};
reporting?: {
exportModalDismissed: boolean;
};
locale: {
code: string;
};
Expand Down Expand Up @@ -232,9 +229,6 @@ describe( 'Transactions list', () => {
precision: 2,
},
},
reporting: {
exportModalDismissed: true,
},
locale: {
code: 'en',
},
Expand Down
3 changes: 0 additions & 3 deletions includes/admin/class-wc-payments-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -972,9 +972,6 @@ private function get_js_settings(): array {
'storeName' => get_bloginfo( 'name' ),
'isNextDepositNoticeDismissed' => WC_Payments_Features::is_next_deposit_notice_dismissed(),
'isInstantDepositNoticeDismissed' => get_option( 'wcpay_instant_deposit_notice_dismissed', false ),
'reporting' => [
'exportModalDismissed' => get_option( 'wcpay_reporting_export_modal_dismissed', false ),
],
'dismissedDuplicateNotices' => get_option( 'wcpay_duplicate_payment_method_notices_dismissed', [] ),
'locale' => WC_Payments_Utils::get_language_data( get_locale() ),
'isOverviewSurveySubmitted' => get_option( 'wcpay_survey_payment_overview_submitted', false ),
Expand Down

0 comments on commit bda60b5

Please sign in to comment.