← All changes
|
assets/src/apps/js/blocks/single-course-item/item-progress/edit.js
+26
-26
4.3.8
→
4.4.10
View file →
| @@ -1,26 +1,26 @@ | ||
| 1 | -import { __ } from '@wordpress/i18n'; | |
| 2 | -import { Placeholder } from '@wordpress/components'; | |
| 3 | -import { useBlockProps } from '@wordpress/block-editor'; | |
| 4 | - | |
| 5 | -const Edit = ( props ) => { | |
| 6 | - const blockProps = useBlockProps(); | |
| 7 | - | |
| 8 | - return ( | |
| 9 | - <div { ...blockProps }> | |
| 10 | - <div class="items-progress"> | |
| 11 | - <span class="number"> | |
| 12 | - <span class="items-completed">43</span> of 86 items | |
| 13 | - </span> | |
| 14 | - <div class="learn-press-progress"> | |
| 15 | - <div | |
| 16 | - class="learn-press-progress__active" | |
| 17 | - data-value="50%" | |
| 18 | - style={ { left: '-50%' } } | |
| 19 | - ></div> | |
| 20 | - </div> | |
| 21 | - </div> | |
| 22 | - </div> | |
| 23 | - ); | |
| 24 | -}; | |
| 25 | - | |
| 26 | -export default Edit; | |
| 1 | +import { __ } from '@wordpress/i18n'; | |
| 2 | +import { Placeholder } from '@wordpress/components'; | |
| 3 | +import { useBlockProps } from '@wordpress/block-editor'; | |
| 4 | + | |
| 5 | +const Edit = ( props ) => { | |
| 6 | + const blockProps = useBlockProps(); | |
| 7 | + | |
| 8 | + return ( | |
| 9 | + <div { ...blockProps }> | |
| 10 | + <div class="items-progress"> | |
| 11 | + <span class="number"> | |
| 12 | + <span class="items-completed">43</span> of 86 items | |
| 13 | + </span> | |
| 14 | + <div class="learn-press-progress"> | |
| 15 | + <div | |
| 16 | + class="learn-press-progress__active" | |
| 17 | + data-value="50%" | |
| 18 | + style={ { left: '-50%' } } | |
| 19 | + ></div> | |
| 20 | + </div> | |
| 21 | + </div> | |
| 22 | + </div> | |
| 23 | + ); | |
| 24 | +}; | |
| 25 | + | |
| 26 | +export default Edit; | |