2018-04-17 23:51:48 +00:00
|
|
|
/** @format */
|
|
|
|
/**
|
|
|
|
* External dependencies
|
|
|
|
*/
|
2018-05-15 15:06:15 +00:00
|
|
|
import { APIProvider } from '@wordpress/components';
|
2018-05-18 17:31:08 +00:00
|
|
|
import { pick } from 'lodash';
|
|
|
|
import { render } from '@wordpress/element';
|
|
|
|
import { Provider as SlotFillProvider } from 'react-slot-fill';
|
2018-05-28 10:55:19 +00:00
|
|
|
import 'react-dates/initialize';
|
2018-04-17 23:51:48 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Internal dependencies
|
|
|
|
*/
|
2018-05-16 14:42:39 +00:00
|
|
|
import './stylesheets/_wpadmin-reset.scss';
|
2018-06-26 14:49:42 +00:00
|
|
|
import { PageLayout } from './layout';
|
2018-07-05 03:14:40 +00:00
|
|
|
import 'store';
|
2018-05-15 15:06:15 +00:00
|
|
|
|
|
|
|
render(
|
|
|
|
<APIProvider
|
|
|
|
{ ...wpApiSettings }
|
|
|
|
{ ...pick( wp.api, [ 'postTypeRestBaseMapping', 'taxonomyRestBaseMapping' ] ) }
|
|
|
|
>
|
2018-05-18 17:31:08 +00:00
|
|
|
<SlotFillProvider>
|
2018-06-26 14:49:42 +00:00
|
|
|
<PageLayout />
|
2018-05-18 17:31:08 +00:00
|
|
|
</SlotFillProvider>
|
2018-05-15 15:06:15 +00:00
|
|
|
</APIProvider>,
|
2018-04-17 23:51:48 +00:00
|
|
|
document.getElementById( 'root' )
|
|
|
|
);
|