PluginProbe
WebberZone Top 10 — Popular Posts / 4.5.1
WebberZone Top 10 — Popular Posts v4.5.1
4.5.1 4.5.0 4.4.3 4.4.2 4.4.1 4.4.0 4.3.4 4.3.3 4.3.2 4.3.1 4.3.0 trunk 1.0 1.0.1 1.1 1.2 1.3 1.4 1.4.1 1.5 1.5.1 1.5.2 1.5.3 1.6 1.6.1 All 117 releases
top-10 / includes / frontend / blocks / src / popular-posts / components / range-controls.js

range-controls.js in WebberZone Top 10 — Popular Posts 4.5.1, at includes/frontend/blocks/src/popular-posts/components/range-controls.js

24 lines 608 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { __ } from '@wordpress/i18n';
2 import { PanelRow, TextControl } from '@wordpress/components';
3
4 export const RangeControls = ( { attributes, onChange } ) => (
5 <>
6 <PanelRow>
7 <TextControl
8 label={ __( 'Day(s)', 'top-10' ) }
9 value={ attributes.daily_range }
10 onChange={ onChange( 'daily_range' ) }
11 help={ __( 'Number of days', 'top-10' ) }
12 />
13 </PanelRow>
14 <PanelRow>
15 <TextControl
16 label={ __( 'Hour range', 'top-10' ) }
17 value={ attributes.hour_range }
18 onChange={ onChange( 'hour_range' ) }
19 help={ __( 'Number of hours', 'top-10' ) }
20 />
21 </PanelRow>
22 </>
23 );
24