Chore: Evaluate ReadReceiptView - TypeScript (#4123)
This commit is contained in:
parent
8ac38a2e04
commit
ee3e569512
|
@ -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));
|
||||||
|
|
Loading…
Reference in New Issue