mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
Remove unused showAllData
This commit is contained in:
parent
84fd823d84
commit
8b88eaed4b
1 changed files with 0 additions and 10 deletions
|
@ -13,14 +13,6 @@ const ConnectionInfo = () => {
|
||||||
}
|
}
|
||||||
}, [merchant]);
|
}, [merchant]);
|
||||||
|
|
||||||
const toggleStatusClassName = [ 'ppcp-r-connection-status__status-toggle' ];
|
|
||||||
|
|
||||||
if ( connectionData.showAllData ) {
|
|
||||||
toggleStatusClassName.push(
|
|
||||||
'ppcp-r-connection-status__status-toggle--toggled'
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="ppcp-r-connection-status__data">
|
<div className="ppcp-r-connection-status__data">
|
||||||
{renderStatusRow(
|
{renderStatusRow(
|
||||||
|
@ -44,7 +36,6 @@ export const getDefaultConnectionStatusData = (merchant = null) => {
|
||||||
const contextMerchant = CommonHooks.useMerchantInfo()?.merchant || {};
|
const contextMerchant = CommonHooks.useMerchantInfo()?.merchant || {};
|
||||||
return {
|
return {
|
||||||
connectionStatus: contextMerchant.isConnected || false,
|
connectionStatus: contextMerchant.isConnected || false,
|
||||||
showAllData: false,
|
|
||||||
email: contextMerchant.email || '',
|
email: contextMerchant.email || '',
|
||||||
merchantId: contextMerchant.id || '',
|
merchantId: contextMerchant.id || '',
|
||||||
clientId: contextMerchant.clientId || '',
|
clientId: contextMerchant.clientId || '',
|
||||||
|
@ -53,7 +44,6 @@ export const getDefaultConnectionStatusData = (merchant = null) => {
|
||||||
|
|
||||||
return {
|
return {
|
||||||
connectionStatus: merchant.isConnected || false,
|
connectionStatus: merchant.isConnected || false,
|
||||||
showAllData: false,
|
|
||||||
email: merchant.email || '',
|
email: merchant.email || '',
|
||||||
merchantId: merchant.id || '',
|
merchantId: merchant.id || '',
|
||||||
clientId: merchant.clientId || '',
|
clientId: merchant.clientId || '',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue