Skip to content

Commit

Permalink
fix: typo in style property and replace to common props from types
Browse files Browse the repository at this point in the history
  • Loading branch information
Arucard89 committed Jun 28, 2024
1 parent 69c6af7 commit 184e929
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/components/Text/Text.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';

import type {QAProps} from '../types';
import type {DOMProps, QAProps} from '../types';

import {colorText} from './colorText/colorText';
import type {ColorTextBaseProps} from './colorText/colorText';
Expand All @@ -10,14 +10,13 @@ import type {TextBaseProps} from './text/text';
export interface TextProps<C extends React.ElementType = 'span'>
extends Omit<TextBaseProps, 'ellipsisLines'>,
ColorTextBaseProps,
QAProps {
QAProps,
DOMProps {
/**
* Ability to override default html tag
*/
as?: C;
ellipsisLines?: number;
className?: string;
styles?: React.CSSProperties;
}

type TextRef<C extends React.ElementType> = React.ComponentPropsWithRef<C>['ref'];
Expand Down

0 comments on commit 184e929

Please sign in to comment.