Skip to content

Commit

Permalink
Merge pull request #31141 from software-mansion-labs/ts-migration/Men…
Browse files Browse the repository at this point in the history
…uItem

[TS migration] Migrate MenuItem to Typescript
  • Loading branch information
deetergp authored Dec 19, 2023
2 parents a66acba + 9de6f8b commit 9857874
Show file tree
Hide file tree
Showing 10 changed files with 679 additions and 501 deletions.
4 changes: 3 additions & 1 deletion src/components/DisplayNames/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ type DisplayNamesProps = {
tooltipEnabled?: boolean;

/** Arbitrary styles of the displayName text */
textStyles: StyleProp<TextStyle>;
textStyles?: StyleProp<TextStyle>;

/**
* Overrides the text that's read by the screen reader when the user interacts with the element. By default, the
Expand All @@ -42,3 +42,5 @@ type DisplayNamesProps = {
};

export default DisplayNamesProps;

export type {DisplayNameWithTooltip};
2 changes: 2 additions & 0 deletions src/components/Icon/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,6 @@ function Icon({

Icon.displayName = 'Icon';

export type {SrcProps};

export default Icon;
412 changes: 0 additions & 412 deletions src/components/MenuItem.js

This file was deleted.

Loading

0 comments on commit 9857874

Please sign in to comment.