diff --git a/source/wp-content/themes/wporg-main-2022/src/remembers-list/edit.js b/source/wp-content/themes/wporg-main-2022/src/remembers-list/edit.js index bbd0bf80..e0cc2128 100644 --- a/source/wp-content/themes/wporg-main-2022/src/remembers-list/edit.js +++ b/source/wp-content/themes/wporg-main-2022/src/remembers-list/edit.js @@ -2,13 +2,26 @@ * WordPress dependencies */ -import { useBlockProps } from '@wordpress/block-editor'; -import { Disabled } from '@wordpress/components'; +import { Disabled, PanelBody, RangeControl } from '@wordpress/components'; import ServerSideRender from '@wordpress/server-side-render'; +import { InspectorControls, useBlockProps } from '@wordpress/block-editor'; +import { __ } from '@wordpress/i18n'; -export default function Edit( { attributes, name } ) { +export default function Edit( { attributes, name, setAttributes } ) { + const { columns } = attributes; return (
+ + + setAttributes( { columns: parseInt( newNumber ) } ) } + min={ Math.max( 1, 1 ) } + max={ Math.max( 6, 10 ) } + /> + + diff --git a/source/wp-content/themes/wporg-main-2022/src/remembers-list/style.scss b/source/wp-content/themes/wporg-main-2022/src/remembers-list/style.scss index 9fc08c78..9d66299c 100644 --- a/source/wp-content/themes/wporg-main-2022/src/remembers-list/style.scss +++ b/source/wp-content/themes/wporg-main-2022/src/remembers-list/style.scss @@ -7,4 +7,4 @@ color: var(--wp--custom--link--color--text); text-decoration: underline; } -} \ No newline at end of file +}