Skip to content

Commit cb3af06

Browse files
committed
Forms: release time field
1 parent baab46a commit cb3af06

File tree

2 files changed

+9
-15
lines changed

2 files changed

+9
-15
lines changed

projects/packages/forms/src/blocks/contact-form/child-blocks.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff 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

projects/packages/forms/src/blocks/contact-form/class-contact-form-block.php

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)