Skip to content

Commit

Permalink
containerComposeStyles param name change
Browse files Browse the repository at this point in the history
  • Loading branch information
lukemorawski committed Nov 29, 2023
1 parent 4406ba3 commit a775123
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/styles/containerComposeStyles/index.native.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import ContainerComposeStyles from './types';

const containerComposeStyles: ContainerComposeStyles = (stylesObject) => [stylesObject.textInputComposeSpacing];
const containerComposeStyles: ContainerComposeStyles = (styles) => [styles.textInputComposeSpacing];

export default containerComposeStyles;
2 changes: 1 addition & 1 deletion src/styles/containerComposeStyles/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import ContainerComposeStyles from './types';

// We need to set paddingVertical = 0 on web to avoid displaying a normal pointer on some parts of compose box when not in focus
const containerComposeStyles: ContainerComposeStyles = (stylesObject) => [stylesObject.textInputComposeSpacing, {paddingVertical: 0}];
const containerComposeStyles: ContainerComposeStyles = (styles) => [styles.textInputComposeSpacing, {paddingVertical: 0}];

export default containerComposeStyles;
4 changes: 2 additions & 2 deletions src/styles/containerComposeStyles/types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {ViewStyle} from 'react-native';
import styles from '@styles/styles';
import themeStyles from '@styles/styles';

type ContainerComposeStyles = (stylesObject: typeof styles) => ViewStyle[];
type ContainerComposeStyles = (styles: typeof themeStyles) => ViewStyle[];

export default ContainerComposeStyles;

0 comments on commit a775123

Please sign in to comment.