Skip to content

Commit d2e1158

Browse files
committed
reinstate OauthClientMasterbar for Crowdsignal logged-out context/layout
1 parent a47de3f commit d2e1158

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

client/layout/masterbar/oauth-client.jsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@ import PropTypes from 'prop-types';
44
import A4ALogo from 'calypso/a8c-for-agencies/components/a4a-logo';
55
import JetpackLogo from 'calypso/components/jetpack-logo';
66
import {
7+
isCrowdsignalOAuth2Client,
78
isWooOAuth2Client,
89
isJetpackCloudOAuth2Client,
910
isA4AOAuth2Client,
1011
isBlazeProOAuth2Client,
1112
} from 'calypso/lib/oauth2-clients';
1213
import BlazeProOauthMasterbar from './blaze-pro';
14+
import CrowdsignalOauthMasterbar from './crowdsignal';
1315
import WooOauthMasterbar from './woo';
1416

1517
import './oauth-client.scss';
@@ -59,6 +61,10 @@ const DefaultOauthClientMasterbar = ( { oauth2Client } ) => (
5961
);
6062

6163
const OauthClientMasterbar = ( { oauth2Client } ) => {
64+
if ( isCrowdsignalOAuth2Client( oauth2Client ) ) {
65+
return <CrowdsignalOauthMasterbar oauth2Client={ oauth2Client } />;
66+
}
67+
6268
if ( isWooOAuth2Client( oauth2Client ) ) {
6369
return <WooOauthMasterbar />;
6470
}

0 commit comments

Comments
 (0)