Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Commit

Permalink
use Meta types
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmcintyre committed Nov 17, 2021
1 parent 5484c79 commit 9b79a38
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
4 changes: 1 addition & 3 deletions src/typography/Meta/Meta.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
4 changes: 1 addition & 3 deletions src/typography/Meta/Meta.tsx
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/typography/Meta/Meta.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export type Props = IrisProps<
{
contentEditable?: never;
/**
* [default = 'p']
* [default = 'span']
*/
element?: 'p' | 'span' | 'label';
/**
Expand Down

0 comments on commit 9b79a38

Please # to comment.