← All changes
|
assets/src/apps/js/frontend/quiz/components/content/index.js
+17
-17
4.3.9
→
4.4.10
View file →
| @@ -1,17 +1,17 @@ | ||
| 1 | -/** | |
| 2 | - * Quiz Content. | |
| 3 | - * Edit: Use React hook. | |
| 4 | - * | |
| 5 | - * @author nhamdv - ThimPress | |
| 6 | - */ | |
| 7 | -import { select } from '@wordpress/data'; | |
| 8 | - | |
| 9 | -const Content = () => { | |
| 10 | - const content = select( 'learnpress/quiz' ).getData( 'content' ); | |
| 11 | - | |
| 12 | - return ( | |
| 13 | - <div className="quiz-content" dangerouslySetInnerHTML={ { __html: content } } /> | |
| 14 | - ); | |
| 15 | -}; | |
| 16 | - | |
| 17 | -export default Content; | |
| 1 | +/** | |
| 2 | + * Quiz Content. | |
| 3 | + * Edit: Use React hook. | |
| 4 | + * | |
| 5 | + * @author nhamdv - ThimPress | |
| 6 | + */ | |
| 7 | +import { select } from '@wordpress/data'; | |
| 8 | + | |
| 9 | +const Content = () => { | |
| 10 | + const content = select( 'learnpress/quiz' ).getData( 'content' ); | |
| 11 | + | |
| 12 | + return ( | |
| 13 | + <div className="quiz-content" dangerouslySetInnerHTML={ { __html: content } } /> | |
| 14 | + ); | |
| 15 | +}; | |
| 16 | + | |
| 17 | +export default Content; | |