PluginProbe
WP Ultimate Post Grid / 4.0.1
WP Ultimate Post Grid v4.0.1
4.1.1 trunk 1.5 1.6 1.7 1.7.1 1.7.2 1.8 1.9 2.0 2.1 2.2 2.3 2.4.0 2.5.0 2.6.0 2.7.0 2.8.0 2.8.2 3.0.0 3.3.0 3.4.0 3.5.0 3.6.0 3.7.0 All 32 releases
wp-ultimate-post-grid / assets / js / admin-modal / grid / section / SectionGeneral.js

SectionGeneral.js in WP Ultimate Post Grid 4.0.1, at assets/js/admin-modal/grid/section/SectionGeneral.js

34 lines 953 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import React, { Fragment } from 'react';
2
3 import Field from 'Modal/field';
4 import { __wpupg } from 'Shared/Translations';
5
6 const SectionGeneral = (props) => {
7 return (
8 <Fragment>
9 <Field
10 value={ props.grid.name }
11 onChange={ ( value ) => {
12 props.onGridChange({
13 name: value,
14 });
15 }}
16 type="text"
17 label={ __wpupg( 'Name' ) }
18 />
19 <Field
20 value={ props.grid.slug }
21 onChange={ ( value ) => {
22 props.onGridChange({
23 slug: value,
24 });
25 }}
26 type="slug"
27 label={ __wpupg( 'ID' ) }
28 help={ __wpupg( 'Used to identify the grid in the shortcode.' ) }
29 />
30 </Fragment>
31 );
32 }
33 export default SectionGeneral;
34