Moved Inbox Panel component (https://github.com/woocommerce/woocommerce-admin/pull/5252)
This commit moves the Inbox Panel component Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
This commit is contained in:
parent
e62114e307
commit
1da4eedbf0
|
@ -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' )
|
||||
|
|
|
@ -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 );
|
||||
|
|
|
@ -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( () =>
|
||||
|
|
|
@ -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]' ) );
|
||||
|
|
|
@ -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 ) {
|
|
@ -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';
|
||||
|
Loading…
Reference in New Issue