| 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 |
|