Skip to content

Commit

Permalink
Update 'selectors' to new import convention (see #716)
Browse files Browse the repository at this point in the history
  • Loading branch information
nylen committed May 9, 2017
1 parent 868c521 commit 499f22f
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion editor/block-mover/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import IconButton from 'components/icon-button';
* Internal dependencies
*/
import './style.scss';
import { isFirstBlock, isLastBlock } from 'selectors';
import { isFirstBlock, isLastBlock } from '../selectors';

function BlockMover( { onMoveUp, onMoveDown, isFirst, isLast } ) {
return (
Expand Down
2 changes: 1 addition & 1 deletion editor/block-switcher/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import IconButton from 'components/icon-button';
* Internal dependencies
*/
import './style.scss';
import { getBlock } from 'selectors';
import { getBlock } from '../selectors';

class BlockSwitcher extends wp.element.Component {
constructor() {
Expand Down
2 changes: 1 addition & 1 deletion editor/header/mode-switcher/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import Dashicon from 'components/dashicon';
* Internal dependencies
*/
import './style.scss';
import { getEditorMode } from 'selectors';
import { getEditorMode } from '../../selectors';

/**
* Set of available mode options.
Expand Down
2 changes: 1 addition & 1 deletion editor/header/saved-state/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import Dashicon from 'components/dashicon';
* Internal dependencies
*/
import './style.scss';
import { isEditedPostDirty } from 'selectors';
import { isEditedPostDirty } from '../../selectors';

function SavedState( { isDirty } ) {
const classes = classNames( 'editor-saved-state', {
Expand Down
2 changes: 1 addition & 1 deletion editor/header/tools/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import Button from 'components/button';
import './style.scss';
import Inserter from '../../inserter';
import PublishButton from './publish-button';
import { isEditorSidebarOpened, hasEditorUndo, hasEditorRedo } from 'selectors';
import { isEditorSidebarOpened, hasEditorUndo, hasEditorRedo } from '../../selectors';

function Tools( { undo, redo, hasUndo, hasRedo, isSidebarOpened, toggleSidebar } ) {
return (
Expand Down
2 changes: 1 addition & 1 deletion editor/header/tools/publish-button.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
isPostSaveRequestSuccessful,
isPostSaveRequestFailed,
isSavingNewPost
} from 'selectors';
} from '../../selectors';

function PublishButton( {
post,
Expand Down
2 changes: 1 addition & 1 deletion editor/layout/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import Header from '../header';
import Sidebar from '../sidebar';
import TextEditor from '../modes/text-editor';
import VisualEditor from '../modes/visual-editor';
import { getEditorMode, isEditorSidebarOpened } from 'selectors';
import { getEditorMode, isEditorSidebarOpened } from '../selectors';

function Layout( { mode, isSidebarOpened } ) {
const className = classnames( 'editor-layout', {
Expand Down
2 changes: 1 addition & 1 deletion editor/modes/text-editor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Textarea from 'react-autosize-textarea';
*/
import './style.scss';
import PostTitle from 'post-title';
import { getBlocks } from 'selectors';
import { getBlocks } from '../../selectors';

function TextEditor( { blocks, onChange } ) {
return (
Expand Down
2 changes: 1 addition & 1 deletion editor/modes/visual-editor/block.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import {
isBlockHovered,
isBlockSelected,
isTypingInBlock
} from 'selectors';
} from '../../selectors';

class VisualEditorBlock extends wp.element.Component {
constructor() {
Expand Down
2 changes: 1 addition & 1 deletion editor/modes/visual-editor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import './style.scss';
import Inserter from '../../inserter';
import VisualEditorBlock from './block';
import PostTitle from '../../post-title';
import { getBlockUids } from 'selectors';
import { getBlockUids } from '../../selectors';

function VisualEditor( { blocks } ) {
return (
Expand Down
2 changes: 1 addition & 1 deletion editor/post-title/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import Textarea from 'react-autosize-textarea';
* Internal dependencies
*/
import './style.scss';
import { getEditedPostTitle } from 'selectors';
import { getEditedPostTitle } from '../selectors';

/**
* Constants
Expand Down

0 comments on commit 499f22f

Please sign in to comment.