desktop.js
5 years ago
main.js
4 years ago
mobile.js
4 years ago
tablet-only.js
5 years ago
tablet.js
4 years ago
desktop.js
24 lines
| 1 | /* eslint-disable quotes */ |
| 2 | import buildCSS from '../../../utils/build-css'; |
| 3 | |
| 4 | import { |
| 5 | Component, |
| 6 | } from '@wordpress/element'; |
| 7 | |
| 8 | import { |
| 9 | applyFilters, |
| 10 | } from '@wordpress/hooks'; |
| 11 | |
| 12 | export default class DesktopCSS extends Component { |
| 13 | render() { |
| 14 | let cssObj = []; |
| 15 | |
| 16 | cssObj = applyFilters( 'generateblocks.editor.desktopCSS', cssObj, this.props, 'button' ); |
| 17 | |
| 18 | return ( |
| 19 | <style>{ buildCSS( cssObj ) }</style> |
| 20 | ); |
| 21 | } |
| 22 | } |
| 23 | /* eslint-enable quotes */ |
| 24 |