File tree Expand file tree Collapse file tree 2 files changed +22
-6
lines changed
assets/apps/customizer-controls/src/repeater Expand file tree Collapse file tree 2 files changed +22
-6
lines changed Original file line number Diff line number Diff line change 44 TextControl ,
55 ToggleControl ,
66 TextareaControl ,
7+ ExternalLink ,
78} from '@wordpress/components' ;
89import IconSelector from './IconSelector' ;
910import { getIcons , ColorControl } from '@neve-wp/components' ;
@@ -67,13 +68,27 @@ const RepeaterItemContent = ({
6768
6869 switch ( currentField . type ) {
6970 case 'text' :
71+ if (
72+ 'fb_page_id' === key &&
73+ 'messenger' !== value [ index ] ?. social_network
74+ ) {
75+ return ;
76+ }
7077 return (
71- < TextControl
72- label = { currentField . label }
73- value = { value [ index ] [ key ] || currentField . default }
74- onChange = { ( newData ) => changeContent ( key , newData ) }
75- key = { key + index }
76- />
78+ < >
79+ < TextControl
80+ label = { currentField . label }
81+ value = { value [ index ] [ key ] || currentField . default }
82+ onChange = { ( newData ) => changeContent ( key , newData ) }
83+ key = { key + index }
84+ help = { currentField . help_text || '' }
85+ />
86+ { currentField ?. help_link && (
87+ < ExternalLink href = { currentField ?. help_link ?. link } >
88+ { currentField ?. help_link ?. text }
89+ </ ExternalLink >
90+ ) }
91+ </ >
7792 ) ;
7893 case 'textarea' :
7994 return (
Original file line number Diff line number Diff line change @@ -220,6 +220,7 @@ export const FIELDS = {
220220 whatsapp : 'WhatsApp' ,
221221 sms : 'SMS' ,
222222 vk : 'VKontakte'
223+ messenger : 'Messenger'
223224 }
224225 } ,
225226 display_desktop : {
You can’t perform that action at this time.
0 commit comments