This commit moves the Inbox Panel component

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
This commit is contained in:
Fernando 2020-10-06 10:13:32 -03:00 committed by GitHub
parent e62114e307
commit 1da4eedbf0
11 changed files with 10 additions and 10 deletions

View File

@ -37,7 +37,9 @@ const HelpPanel = lazy( () =>
);
const InboxPanel = lazy( () =>
import( /* webpackChunkName: "activity-panels-inbox" */ './panels/inbox' )
import(
/* webpackChunkName: "activity-panels-inbox" */ '../../inbox-panel'
)
);
const OrdersPanel = lazy( () =>
import( /* webpackChunkName: "activity-panels-orders" */ './panels/orders' )

View File

@ -15,7 +15,7 @@ import { getSetting } from '@woocommerce/wc-admin-settings';
* Internal dependencies
*/
import { DEFAULT_ACTIONABLE_STATUSES } from '../../analytics/settings/config';
import { getUnreadNotesCount } from './panels/inbox/utils';
import { getUnreadNotesCount } from '../../inbox-panel/utils';
export function getUnreadNotes( select ) {
const { getNotes, getNotesError, isResolving } = select( NOTES_STORE_NAME );

View File

@ -23,7 +23,7 @@ import StatsOverview from './stats-overview';
import './style.scss';
import '../dashboard/style.scss';
import TaskListPlaceholder from '../task-list/placeholder';
import InboxPanel from '../header/activity-panel/panels/inbox';
import InboxPanel from '../inbox-panel';
import { WelcomeModal } from './welcome-modal';
const TaskList = lazy( () =>

View File

@ -17,9 +17,7 @@ jest.mock( 'homescreen/stats-overview', () =>
jest.mock( 'task-list', () => jest.fn().mockReturnValue( '[TaskList]' ) );
// We aren't testing the <InboxPanel /> component here.
jest.mock( 'header/activity-panel/panels/inbox', () =>
jest.fn().mockReturnValue( '[InboxPanel]' )
);
jest.mock( 'inbox-panel', () => jest.fn().mockReturnValue( '[InboxPanel]' ) );
// We aren't testing the <QuickLinks /> component here.
jest.mock( 'quick-links', () => jest.fn().mockReturnValue( '[QuickLinks]' ) );

View File

@ -15,9 +15,9 @@ import { recordEvent } from '@woocommerce/tracks';
* Internal dependencies
*/
import NoteAction from './action';
import sanitizeHTML from '../../../../lib/sanitize-html';
import sanitizeHTML from '../lib/sanitize-html';
import './style.scss';
import { getScreenName } from '../../../../utils';
import { getScreenName } from '../utils';
class InboxNoteCard extends Component {
constructor( props ) {

View File

@ -15,9 +15,9 @@ import { withSelect } from '@wordpress/data';
/**
* Internal dependencies
*/
import { ActivityCard } from '../../activity-card';
import { ActivityCard } from '../header/activity-panel/activity-card';
import InboxNotePlaceholder from './placeholder';
import ActivityHeader from '../../activity-header';
import ActivityHeader from '../header/activity-panel/activity-header';
import InboxNoteCard from './card';
import { getUnreadNotesCount, hasValidNotes } from './utils';