From ee3e569512004b9d09bb5a5392f2e5faa4ed3fce Mon Sep 17 00:00:00 2001 From: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com> Date: Mon, 2 May 2022 11:17:55 -0300 Subject: [PATCH] Chore: Evaluate ReadReceiptView - TypeScript (#4123) --- app/views/ReadReceiptView/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/ReadReceiptView/index.tsx b/app/views/ReadReceiptView/index.tsx index bb841c40..a6838c82 100644 --- a/app/views/ReadReceiptView/index.tsx +++ b/app/views/ReadReceiptView/index.tsx @@ -16,7 +16,7 @@ import { themes } from '../../lib/constants'; import SafeAreaView from '../../containers/SafeAreaView'; import styles from './styles'; import { ChatsStackParamList } from '../../stacks/types'; -import { IReadReceipts } from '../../definitions'; +import { IApplicationState, IReadReceipts } from '../../definitions'; import { Services } from '../../lib/services'; interface IReadReceiptViewState { @@ -167,8 +167,8 @@ class ReadReceiptView extends React.Component ({ - Message_TimeAndDateFormat: state.settings.Message_TimeAndDateFormat +const mapStateToProps = (state: IApplicationState) => ({ + Message_TimeAndDateFormat: state.settings.Message_TimeAndDateFormat as string }); export default connect(mapStateToProps)(withTheme(ReadReceiptView));