Skip to content

Commit

Permalink
Move files around a little more.
Browse files Browse the repository at this point in the history
  • Loading branch information
spacedmonkey committed Jun 3, 2020
1 parent fa50cfd commit d88fe54
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 9 deletions.
3 changes: 1 addition & 2 deletions assets/src/media-selector/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
*/
import './style.css';
import unsetUnsplashLibrary from './controllers/unset-unsplash-library';
import withUnsplashTab from './views/with-unsplash-tab';
import PostFrame from './views/post-frame';
import { withUnsplashTab, PostFrame } from './views';

// Override media frames in the respective editors to add the Unsplash tab.
if ( wp.media && wp.media.view && wp.media.view.MediaFrame ) {
Expand Down
2 changes: 1 addition & 1 deletion assets/src/media-selector/views/images-browser.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Internal dependencies
*/
import ImageViews from './image-views';
import { ImageViews } from './';
import { getConfig } from '../helpers';

const ImagesBrowser = wp.media.view.AttachmentsBrowser.extend( {
Expand Down
8 changes: 8 additions & 0 deletions assets/src/media-selector/views/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export { default as Button } from './button';
export { default as ImagesBrowser } from './images-browser';
export { default as ImageView } from './image-view';
export { default as ImageViews } from './image-views';
export { default as PostFrame } from './post-frame';
export { default as Toolbar } from './toolbar';
export { default as ToolbarSelect } from './toolbar-select';
export { default as withUnsplashTab } from './with-unsplash-tab';
2 changes: 1 addition & 1 deletion assets/src/media-selector/views/toolbar-select.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Internal dependencies
*/
import Toolbar from './toolbar';
import { Toolbar } from './';

const ToolbarSelect = wp.media.view.Toolbar.Select.extend( {
initialize() {
Expand Down
2 changes: 1 addition & 1 deletion assets/src/media-selector/views/toolbar.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Internal dependencies
*/
import Button from './button';
import { Button } from './';

const Toolbar = wp.media.view.Toolbar.extend( {
initialize() {
Expand Down
5 changes: 1 addition & 4 deletions assets/src/media-selector/views/with-unsplash-tab.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
* Internal dependencies
*/
import UnsplashState from '../store/unsplash-state';
import ImagesBrowser from './images-browser';
import ImageView from './image-view';
import Toolbar from './toolbar';
import ToolbarSelect from './toolbar-select';
import { ImagesBrowser, ImageView, Toolbar, ToolbarSelect } from './';
import { getConfig, isApplicableLibraries, isImageIncluded } from '../helpers';

export default View => {
Expand Down

0 comments on commit d88fe54

Please sign in to comment.