Skip to content

Commit

Permalink
Merge pull request #25821 from JKobrynski/migrateTextUnderlineToTypeS…
Browse files Browse the repository at this point in the history
…cript

[No QA] [TS migration] Migrate textUnderline style to TypeScript
  • Loading branch information
srikarparsi authored Aug 31, 2023
2 parents e356a10 + e21f6ad commit 5101bd5
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 13 deletions.
9 changes: 0 additions & 9 deletions src/styles/utilities/textUnderline/index.js

This file was deleted.

4 changes: 0 additions & 4 deletions src/styles/utilities/textUnderline/index.native.js

This file was deleted.

9 changes: 9 additions & 0 deletions src/styles/utilities/textUnderline/index.native.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import TextUnderlineStyles from './types';

// following styles are not supported
const textUnderline: TextUnderlineStyles = {
textUnderlinePositionUnder: {},
textDecorationSkipInkNone: {},
};

export default textUnderline;
12 changes: 12 additions & 0 deletions src/styles/utilities/textUnderline/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import TextUnderlineStyles from './types';

const textUnderline: TextUnderlineStyles = {
textUnderlinePositionUnder: {
textUnderlinePosition: 'under',
},
textDecorationSkipInkNone: {
textDecorationSkipInk: 'none',
},
};

export default textUnderline;
8 changes: 8 additions & 0 deletions src/styles/utilities/textUnderline/types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import {CSSProperties} from 'react';

type TextUnderlineStyles = {
textUnderlinePositionUnder: Pick<CSSProperties, 'textUnderlinePosition'>;
textDecorationSkipInkNone: Pick<CSSProperties, 'textDecorationSkipInk'>;
};

export default TextUnderlineStyles;

0 comments on commit 5101bd5

Please sign in to comment.