Skip to content

Commit

Permalink
Merge pull request #25916 from pasyukevich/migration-ts/option-row-st…
Browse files Browse the repository at this point in the history
…yles

[No QA] [TS migration] Migrate 'optionRowStyles' style to TypeScript
  • Loading branch information
youssef-lr authored Aug 26, 2023
2 parents a48b159 + 4163ea2 commit 4a8c1a7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import OptionRowStyles from './types';
import styles from '../styles';

/**
Expand All @@ -7,7 +8,7 @@ import styles from '../styles';
* https://github.com/Expensify/App/issues/14148
*/

const compactContentContainerStyles = styles.alignItemsCenter;
const compactContentContainerStyles: OptionRowStyles = styles.alignItemsCenter;

export {
// eslint-disable-next-line import/prefer-default-export
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import OptionRowStyles from './types';
import styles from '../styles';

const compactContentContainerStyles = styles.alignItemsBaseline;
const compactContentContainerStyles: OptionRowStyles = styles.alignItemsBaseline;

export {
// eslint-disable-next-line import/prefer-default-export
Expand Down
6 changes: 6 additions & 0 deletions src/styles/optionRowStyles/types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import {CSSProperties} from 'react';
import {ViewStyle} from 'react-native';

type OptionRowStyles = CSSProperties | ViewStyle;

export default OptionRowStyles;

0 comments on commit 4a8c1a7

Please sign in to comment.