2018-04-17 23:51:48 +00:00
|
|
|
/** @format */
|
|
|
|
/**
|
|
|
|
* External dependencies
|
|
|
|
*/
|
2018-05-03 18:23:17 +00:00
|
|
|
import { __ } from '@wordpress/i18n';
|
2018-04-17 23:51:48 +00:00
|
|
|
import { applyFilters } from '@wordpress/hooks';
|
2018-05-03 14:15:36 +00:00
|
|
|
import { Component, compose } from '@wordpress/element';
|
2018-04-17 23:51:48 +00:00
|
|
|
|
|
|
|
/**
|
2018-05-03 18:23:17 +00:00
|
|
|
* Internal dependencies
|
2018-04-17 23:51:48 +00:00
|
|
|
*/
|
|
|
|
import './style.scss';
|
|
|
|
import useFilters from '../use-filters';
|
2018-05-03 18:23:17 +00:00
|
|
|
import WidgetNumbers from './widgets/numbers';
|
2018-04-17 23:51:48 +00:00
|
|
|
|
|
|
|
class Dashboard extends Component {
|
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<div>
|
|
|
|
<h2>{ applyFilters( 'woodash.example2', __( 'Example Widget', 'woo-dash' ) ) }</h2>
|
2018-05-03 18:23:17 +00:00
|
|
|
<WidgetNumbers />
|
2018-04-17 23:51:48 +00:00
|
|
|
|
|
|
|
<h3>{ applyFilters( 'woodash.example', __( 'Example Text', 'woo-dash' ) ) }</h3>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-05-03 14:15:36 +00:00
|
|
|
export default compose( [
|
|
|
|
useFilters( [ 'woodash.example', 'woodash.example2' ] ),
|
|
|
|
] )( Dashboard );
|