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:
Rodrigo Primo
2023-01-18 17:54:12 -03:00
committed by Aschepikov
parent 527ebafc5c
commit c4ce4fd10b
5 changed files with 6 additions and 7 deletions

View File

@@ -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';

View File

@@ -0,0 +1,2 @@
export * from './heading/heading';
export * from './list/list';

View File

@@ -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 (

View File

@@ -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(

View File

@@ -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 = {