← All changes
|
assets/src/apps/js/blocks/course-elements/course-featured/edit.js
+20
-20
4.3.9.1
→
4.4.9
View file →
| @@ -1,20 +1,20 @@ | ||
| 1 | -import { __ } from '@wordpress/i18n'; | |
| 2 | -import { useBlockProps, InspectorControls } from '@wordpress/block-editor'; | |
| 3 | - | |
| 4 | -const Edit = ( props ) => { | |
| 5 | - const { attributes, setAttributes, context } = props; | |
| 6 | - const blockProps = useBlockProps(); | |
| 7 | - const { lpCourseData } = context; | |
| 8 | - | |
| 9 | - const label = __( 'Featured', 'learnpress' ); | |
| 10 | - | |
| 11 | - return ( | |
| 12 | - <> | |
| 13 | - <div { ...blockProps } style={ { ...blockProps.style, display: 'inline-block' } }> | |
| 14 | - { label } | |
| 15 | - </div> | |
| 16 | - </> | |
| 17 | - ); | |
| 18 | -}; | |
| 19 | - | |
| 20 | -export default Edit; | |
| 1 | +import { __ } from '@wordpress/i18n'; | |
| 2 | +import { useBlockProps, InspectorControls } from '@wordpress/block-editor'; | |
| 3 | + | |
| 4 | +const Edit = ( props ) => { | |
| 5 | + const { attributes, setAttributes, context } = props; | |
| 6 | + const blockProps = useBlockProps(); | |
| 7 | + const { lpCourseData } = context; | |
| 8 | + | |
| 9 | + const label = __( 'Featured', 'learnpress' ); | |
| 10 | + | |
| 11 | + return ( | |
| 12 | + <> | |
| 13 | + <div { ...blockProps } style={ { ...blockProps.style, display: 'inline-block' } }> | |
| 14 | + { label } | |
| 15 | + </div> | |
| 16 | + </> | |
| 17 | + ); | |
| 18 | +}; | |
| 19 | + | |
| 20 | +export default Edit; | |