Fallback for the SafetyNumberViewer
This commit is contained in:
parent
da7a76e03f
commit
0872afba3d
9 changed files with 32 additions and 61 deletions
|
@ -5,16 +5,12 @@ import { connect } from 'react-redux';
|
|||
import { mapDispatchToProps } from '../actions';
|
||||
import { SafetyNumberViewer } from '../../components/SafetyNumberViewer';
|
||||
import type { StateType } from '../reducer';
|
||||
import type { SafetyNumberProps } from '../../components/SafetyNumberChangeDialog';
|
||||
import { getContactSafetyNumber } from '../selectors/safetyNumber';
|
||||
import { getConversationSelector } from '../selectors/conversations';
|
||||
import { getIntl } from '../selectors/user';
|
||||
|
||||
export type Props = {
|
||||
contactID: string;
|
||||
onClose?: () => void;
|
||||
};
|
||||
|
||||
const mapStateToProps = (state: StateType, props: Props) => {
|
||||
const mapStateToProps = (state: StateType, props: SafetyNumberProps) => {
|
||||
return {
|
||||
...props,
|
||||
...getContactSafetyNumber(state, props),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue