From a7751239d3164b64b6b77f863ff14f5955befcb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20M=C3=B3rawski?= Date: Wed, 29 Nov 2023 16:08:03 +0100 Subject: [PATCH] containerComposeStyles param name change --- src/styles/containerComposeStyles/index.native.ts | 2 +- src/styles/containerComposeStyles/index.ts | 2 +- src/styles/containerComposeStyles/types.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/styles/containerComposeStyles/index.native.ts b/src/styles/containerComposeStyles/index.native.ts index 2b34bb2c50e4..3104b6878b2a 100644 --- a/src/styles/containerComposeStyles/index.native.ts +++ b/src/styles/containerComposeStyles/index.native.ts @@ -1,5 +1,5 @@ import ContainerComposeStyles from './types'; -const containerComposeStyles: ContainerComposeStyles = (stylesObject) => [stylesObject.textInputComposeSpacing]; +const containerComposeStyles: ContainerComposeStyles = (styles) => [styles.textInputComposeSpacing]; export default containerComposeStyles; diff --git a/src/styles/containerComposeStyles/index.ts b/src/styles/containerComposeStyles/index.ts index 4025e51c2ebd..c6161fd2d9df 100644 --- a/src/styles/containerComposeStyles/index.ts +++ b/src/styles/containerComposeStyles/index.ts @@ -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; diff --git a/src/styles/containerComposeStyles/types.ts b/src/styles/containerComposeStyles/types.ts index ec94c70da971..0b2305f52b56 100644 --- a/src/styles/containerComposeStyles/types.ts +++ b/src/styles/containerComposeStyles/types.ts @@ -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;