Skip to content

Commit

Permalink
fix lint error by removing textalign prop from textProps
Browse files Browse the repository at this point in the history
  • Loading branch information
thebinij committed Jun 13, 2023
1 parent aaff9d4 commit ee231e5
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions ui/components/component-library/text/text.types.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import React from 'react';
import type { BoxProps, TextAlignArray } from '../../ui/box/box.d';
import type { BoxProps } from '../../ui/box/box.d';
import {
FontWeight,
FontStyle,
TextVariant,
TextAlign,
TextTransform,
OverflowWrap,
TextColor,
Expand Down Expand Up @@ -115,11 +114,6 @@ export interface TextProps extends BoxProps {
* ./ui/helpers/constants/design-system.js
*/
textTransform?: TextTransform;
/**
* The text-align of the Text component. Should use the TextAlign enum from
* ./ui/helpers/constants/design-system.js
*/
textAlign?: TextAlign | TextAlignArray;
/**
* Change the dir (direction) global attribute of text to support the direction a language is written
* Possible values: `LEFT_TO_RIGHT` (default), `RIGHT_TO_LEFT`, `AUTO` (user agent decides)
Expand Down

0 comments on commit ee231e5

Please sign in to comment.