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-04-17 23:51:48 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Internal dependencies
|
|
|
|
*/
|
2018-05-16 14:42:39 +00:00
|
|
|
import './stylesheets/_wpadmin-reset.scss';
|
2018-05-18 17:31:08 +00:00
|
|
|
import Layout from './layout';
|
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>
|
|
|
|
<Layout />
|
|
|
|
</SlotFillProvider>
|
2018-05-15 15:06:15 +00:00
|
|
|
</APIProvider>,
|
2018-04-17 23:51:48 +00:00
|
|
|
document.getElementById( 'root' )
|
|
|
|
);
|