Chore: Evaluate ReadReceiptView - TypeScript (#4123)

This commit is contained in:
Reinaldo Neto 2022-05-02 11:17:55 -03:00 committed by GitHub
parent 8ac38a2e04
commit ee3e569512
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@ import { themes } from '../../lib/constants';
import SafeAreaView from '../../containers/SafeAreaView'; import SafeAreaView from '../../containers/SafeAreaView';
import styles from './styles'; import styles from './styles';
import { ChatsStackParamList } from '../../stacks/types'; import { ChatsStackParamList } from '../../stacks/types';
import { IReadReceipts } from '../../definitions'; import { IApplicationState, IReadReceipts } from '../../definitions';
import { Services } from '../../lib/services'; import { Services } from '../../lib/services';
interface IReadReceiptViewState { interface IReadReceiptViewState {
@ -167,8 +167,8 @@ class ReadReceiptView extends React.Component<IReadReceiptViewProps, IReadReceip
} }
} }
const mapStateToProps = (state: any) => ({ const mapStateToProps = (state: IApplicationState) => ({
Message_TimeAndDateFormat: state.settings.Message_TimeAndDateFormat Message_TimeAndDateFormat: state.settings.Message_TimeAndDateFormat as string
}); });
export default connect(mapStateToProps)(withTheme(ReadReceiptView)); export default connect(mapStateToProps)(withTheme(ReadReceiptView));