Skip to content

Commit 76ab6eb

Browse files
authored
🔨 Export IonHeading (#104)
1 parent efdbf3b commit 76ab6eb

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@brisanet/ion-react",
3-
"version": "0.0.9",
3+
"version": "0.0.10",
44
"description": "Ion Design System in React",
55
"engines": {
66
"node": "16.19.x"

‎src/components/index.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ export { default as Icon } from './icons';
33
export { default as IonChip } from './chip';
44
export { default as IonTag } from './tag';
55
export { default as IonSteps } from './steps';
6+
export * from './typhography';
67
export * from './alert';

‎src/components/typhography/heading/heading.spec.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import { render, screen } from '@testing-library/react';
3-
import { IonHeading } from './heading';
43
import { IonHeadingInterface } from '../typhography.types';
4+
import IonHeading from './heading';
55

66
const defaultProps: IonHeadingInterface = { label: 'Ion React', type: 'h1' };
77

‎src/components/typhography/heading/heading.tsx‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22
import { IonHeadingInterface } from '../typhography.types';
33
import * as S from './styles';
44

5-
export const IonHeading: React.FC<IonHeadingInterface> = ({
5+
const IonHeading: React.FC<IonHeadingInterface> = ({
66
label,
77
type,
88
size = 'normal',
@@ -24,3 +24,5 @@ export const IonHeading: React.FC<IonHeadingInterface> = ({
2424
};
2525
return headings[type];
2626
};
27+
28+
export default IonHeading;

0 commit comments

Comments
 (0)