summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/extensions/blocks/contact-info/phone/edit.js')
-rw-r--r--plugins/jetpack/extensions/blocks/contact-info/phone/edit.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/plugins/jetpack/extensions/blocks/contact-info/phone/edit.js b/plugins/jetpack/extensions/blocks/contact-info/phone/edit.js
new file mode 100644
index 00000000..0a55333e
--- /dev/null
+++ b/plugins/jetpack/extensions/blocks/contact-info/phone/edit.js
@@ -0,0 +1,19 @@
+/**
+ * External dependencies
+ */
+import { __ } from '@wordpress/i18n';
+
+/**
+ * Internal dependencies
+ */
+import save from './save';
+import simpleInput from '../../../shared/simple-input';
+
+const PhoneEdit = props => {
+ const { setAttributes } = props;
+ return simpleInput( 'phone', props, __( 'Phone number', 'jetpack' ), save, nextValue =>
+ setAttributes( { phone: nextValue } )
+ );
+};
+
+export default PhoneEdit;