Skip to content

Commit

Permalink
migrate optionRowStyles to ts
Browse files Browse the repository at this point in the history
  • Loading branch information
pasyukevich committed Aug 25, 2023
1 parent 34d4e54 commit 4163ea2
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 4163ea2

Please sign in to comment.