@@ -20,15 +20,13 @@ import useMediaRestrictions, { NO_MEDIA_ERROR } from '../../hooks/use-media-rest
20
20
import useRefreshAutoConversionSettings from '../../hooks/use-refresh-auto-conversion-settings' ;
21
21
import useRefreshConnections from '../../hooks/use-refresh-connections' ;
22
22
import useSocialMediaConnections from '../../hooks/use-social-media-connections' ;
23
- import { CONNECTION_SERVICE_INSTAGRAM_BUSINESS , store as socialStore } from '../../social-store' ;
24
- import { getSupportedAdditionalConnections } from '../../utils' ;
23
+ import { store as socialStore } from '../../social-store' ;
25
24
import { AdvancedPlanNudge } from './advanced-plan-nudge' ;
26
25
import { AutoConversionNotice } from './auto-conversion-notice' ;
27
26
import { BrokenConnectionsNotice } from './broken-connections-notice' ;
28
27
import { ConnectionsList } from './connections-list' ;
29
28
import { EnabledConnectionsNotice } from './enabled-connections-notice' ;
30
29
import { InstagramNoMediaNotice } from './instagram-no-media-notice' ;
31
- import { InstagramSupportedNotice } from './instagram-supported-notice' ;
32
30
import { ShareCountInfo } from './share-count-info' ;
33
31
import { SharePostForm } from './share-post-form' ;
34
32
import { UnsupportedConnectionsNotice } from './unsupported-connections-notice' ;
@@ -47,19 +45,12 @@ export default function PublicizeForm() {
47
45
const { isPublicizeEnabled, isPublicizeDisabledBySitePlan, connectionsAdminUrl } =
48
46
usePublicizeConfig ( ) ;
49
47
50
- const hasInstagramConnection = connections . some (
51
- connection => connection . service_name === 'instagram-business'
52
- ) ;
53
48
const { numberOfSharesRemaining } = useSelect ( select => {
54
49
return {
55
50
showShareLimits : select ( socialStore ) . showShareLimits ( ) ,
56
51
numberOfSharesRemaining : select ( socialStore ) . numberOfSharesRemaining ( ) ,
57
52
} ;
58
53
} , [ ] ) ;
59
- const shouldShowInstagramNotice =
60
- ! hasInstagramConnection &&
61
- getSupportedAdditionalConnections ( ) . includes ( CONNECTION_SERVICE_INSTAGRAM_BUSINESS ) &&
62
- shouldShowNotice ( NOTICES . instagram ) ;
63
54
64
55
const Wrapper = isPublicizeDisabledBySitePlan ? Disabled : Fragment ;
65
56
@@ -123,18 +114,14 @@ export default function PublicizeForm() {
123
114
) ) }
124
115
</ >
125
116
) : (
126
- ! shouldShowInstagramNotice && (
127
- < PanelRow >
128
- < ExternalLink href = { connectionsAdminUrl } >
129
- { __ ( 'Connect an account' , 'jetpack' ) }
130
- </ ExternalLink >
131
- </ PanelRow >
132
- )
117
+ < PanelRow >
118
+ < ExternalLink href = { connectionsAdminUrl } >
119
+ { __ ( 'Connect an account' , 'jetpack' ) }
120
+ </ ExternalLink >
121
+ </ PanelRow >
133
122
) }
134
123
{ ! isPublicizeDisabledBySitePlan && (
135
124
< Fragment >
136
- { shouldShowInstagramNotice && < InstagramSupportedNotice /> }
137
-
138
125
{ isPublicizeEnabled && hasEnabledConnections && < SharePostForm /> }
139
126
< AdvancedPlanNudge />
140
127
</ Fragment >
0 commit comments