From 9b79a38030b8ed0a7f0e22dc1bdebe6cf9d552df Mon Sep 17 00:00:00 2001 From: Sean McIntyre Date: Wed, 17 Nov 2021 14:14:46 -0500 Subject: [PATCH] use Meta types --- src/typography/Meta/Meta.story.tsx | 4 +--- src/typography/Meta/Meta.tsx | 4 +--- src/typography/Meta/Meta.types.ts | 2 +- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/typography/Meta/Meta.story.tsx b/src/typography/Meta/Meta.story.tsx index 31243407e..912b92799 100644 --- a/src/typography/Meta/Meta.story.tsx +++ b/src/typography/Meta/Meta.story.tsx @@ -2,9 +2,7 @@ import React from 'react'; import { Story } from '@storybook/react'; import { Meta } from './Meta'; -// import { Props } from './Meta.types'; - -type Props = any; +import { Props } from './Meta.types'; export default { title: 'typography/Meta', diff --git a/src/typography/Meta/Meta.tsx b/src/typography/Meta/Meta.tsx index b386935ba..5f936444b 100644 --- a/src/typography/Meta/Meta.tsx +++ b/src/typography/Meta/Meta.tsx @@ -1,12 +1,10 @@ import React from 'react'; -// import { Props } from './Meta.types'; +import { Props } from './Meta.types'; import { Meta as Styled } from './Meta.style'; import { withIris } from '../../utils'; -type Props = any; - export const Meta = withIris< HTMLParagraphElement | HTMLSpanElement | HTMLLabelElement, Props diff --git a/src/typography/Meta/Meta.types.ts b/src/typography/Meta/Meta.types.ts index e09a5a625..cac5d95db 100644 --- a/src/typography/Meta/Meta.types.ts +++ b/src/typography/Meta/Meta.types.ts @@ -5,7 +5,7 @@ export type Props = IrisProps< { contentEditable?: never; /** - * [default = 'p'] + * [default = 'span'] */ element?: 'p' | 'span' | 'label'; /**