Skip to content

Commit

Permalink
See pewresearch/pewresearch-org@36f7af3 from refs/heads/release/5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
prcdevgitbot committed Feb 12, 2024
1 parent 2eddac7 commit ee5ad8f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 16 deletions.
18 changes: 8 additions & 10 deletions blocks/form-input-select/src/controls.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ import { PanelBody, TextControl, ToggleControl } from '@wordpress/components';
*/

const DEFAULT_OPTIONS = [
{ "label": "North America", "value": "north-america" },
{ "label": "South America", "value": "south-america" },
{ "label": "Europe", "value": "europe" },
{ "label": "Asia", "value": "asia" },
{ "label": "Africa", "value": "africa" },
{ "label": "Australia", "value": "australia" }
{ label: 'North America', value: 'north-america' },
{ label: 'South America', value: 'south-america' },
{ label: 'Europe', value: 'europe' },
{ label: 'Asia', value: 'asia' },
{ label: 'Africa', value: 'africa' },
{ label: 'Australia', value: 'australia' },
];

export default function Controls({ attributes, setAttributes, clientId }) {
Expand All @@ -47,9 +47,7 @@ export default function Controls({ attributes, setAttributes, clientId }) {
<ToggleControl
label="Disabled"
checked={attributes.disabled}
help={
'If toggled on, the user cannot interact with this input.'
}
help="If toggled on, the user cannot interact with this input."
onChange={(val) => {
setAttributes({ disabled: val });
}}
Expand All @@ -59,7 +57,7 @@ export default function Controls({ attributes, setAttributes, clientId }) {
<Sorter
options={options}
setAttributes={setAttributes}
attribute={'options'}
attribute="options"
clientId={clientId}
/>
</PanelBody>
Expand Down
5 changes: 0 additions & 5 deletions blocks/form-input-text/form-input-text.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,6 @@ public function init($loader = null) {
*/
public function block_init() {
register_block_type( self::$dir . '/build' );
gutenberg_register_module(
'prc-block/form-input-text-view',
plugin_dir_url( __FILE__ ) . 'src/view.js',
array( '@wordpress/interactivity' ),
);
}

}
2 changes: 1 addition & 1 deletion prc-block-library.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* Author URI: https://pewresearch.org
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: prc-block-libraryRequires Plugins
* Text Domain: prc-block-library
* Requires Plugins: prc-platform-core
*
*/
Expand Down

0 comments on commit ee5ad8f

Please sign in to comment.