File tree Expand file tree Collapse file tree 2 files changed +9
-15
lines changed
projects/packages/forms/src/blocks/contact-form Expand file tree Collapse file tree 2 files changed +9
-15
lines changed Original file line number Diff line number Diff line change @@ -60,18 +60,14 @@ export const childBlocks = [
6060 JetpackUrlField ,
6161 JetpackTelephoneField ,
6262 JetpackTextareaField ,
63+ JetpackTimeField ,
6364 JetpackFieldFile ,
6465 JetpackRatingField ,
6566 JetpackRatingInput ,
6667 JetpackFieldSlider ,
6768 JetpackSliderInput ,
6869 ...( getJetpackBlocksVariation ( ) === 'beta'
69- ? [
70- JetpackTimeField ,
71- JetpackImageSelectField ,
72- JetpackImageOptionsFieldset ,
73- JetpackImageOptionInput ,
74- ]
70+ ? [ JetpackImageSelectField , JetpackImageOptionsFieldset , JetpackImageOptionInput ]
7571 : [ ] ) ,
7672
7773 // The following are required for these blocks to be parsed correctly in block
Original file line number Diff line number Diff line change @@ -476,15 +476,13 @@ public static function register_child_blocks() {
476476 )
477477 );
478478
479- if ( Blocks::get_variation () === 'beta ' ) {
480- Blocks::jetpack_register_block (
481- 'jetpack/field-time ' ,
482- array (
483- 'render_callback ' => array ( Contact_Form_Plugin::class, 'gutenblock_render_field_time ' ),
484- 'provides_context ' => array ( 'jetpack/field-required ' => 'required ' ),
485- )
486- );
487- }
479+ Blocks::jetpack_register_block (
480+ 'jetpack/field-time ' ,
481+ array (
482+ 'render_callback ' => array ( Contact_Form_Plugin::class, 'gutenblock_render_field_time ' ),
483+ 'provides_context ' => array ( 'jetpack/field-required ' => 'required ' ),
484+ )
485+ );
488486
489487 // Paid file field block
490488 add_action (
You can’t perform that action at this time.
0 commit comments