Simplify imports by adding an index to common/typography/
Doing this based on feedback from first draft version of the PR related to this commit. [MAILPOET-4818]
This commit is contained in:
committed by
Aschepikov
parent
527ebafc5c
commit
c4ce4fd10b
@@ -1,6 +1,7 @@
|
||||
export { Button } from './button/button';
|
||||
export * from './loader/loader';
|
||||
export * from './tabs/tab';
|
||||
export * from './typography';
|
||||
export { Heading as TypographyHeading } from './typography/heading/heading';
|
||||
export * from './premium_required/premium_required';
|
||||
export * from './loading';
|
||||
|
2
mailpoet/assets/js/src/common/typography/index.ts
Normal file
2
mailpoet/assets/js/src/common/typography/index.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
export * from './heading/heading';
|
||||
export * from './list/list';
|
@@ -1,10 +1,8 @@
|
||||
import { useState } from 'react';
|
||||
import { MailPoet } from 'mailpoet';
|
||||
|
||||
import { Heading } from 'common/typography/heading/heading';
|
||||
import { WelcomeWizardStepLayoutBody } from 'wizard/layout/step_layout_body.jsx';
|
||||
import { List } from 'common/typography/list/list';
|
||||
import { Button } from 'common';
|
||||
import { Button, Heading, List } from 'common';
|
||||
|
||||
function FreeBenefitsList(): JSX.Element {
|
||||
return (
|
||||
|
@@ -2,8 +2,7 @@ import { useHistory, useParams } from 'react-router-dom';
|
||||
import { external, Icon } from '@wordpress/icons';
|
||||
import { Heading } from 'common/typography/heading/heading';
|
||||
import { MailPoet } from 'mailpoet';
|
||||
import { List } from 'common/typography/list/list';
|
||||
import { Button } from 'common';
|
||||
import { Button, List } from 'common';
|
||||
import { OwnEmailServiceNote } from './own_email_service_note';
|
||||
|
||||
const mailpoetAccountUrl = MailPoet.MailPoetComUrlFactory.getPurchasePlanUrl(
|
||||
|
@@ -2,9 +2,8 @@ import { useHistory, useParams } from 'react-router-dom';
|
||||
import { useState } from '@wordpress/element';
|
||||
import { useCallback } from 'react';
|
||||
import ReactStringReplace from 'react-string-replace';
|
||||
import { Heading } from 'common/typography/heading/heading';
|
||||
import { MailPoet } from 'mailpoet';
|
||||
import { Button, Input } from 'common';
|
||||
import { Button, Input, Heading } from 'common';
|
||||
import { OwnEmailServiceNote } from './own_email_service_note';
|
||||
|
||||
type MSSStepSecondPartPropType = {
|
||||
|
Reference in New Issue
Block a user