update: type for `showActionSheet`
This commit is contained in:
parent
4148ec554c
commit
f40847bc92
|
@ -6,8 +6,8 @@ export type TActionSheetOptionsItem = { title: string; icon: string; onPress: ()
|
||||||
|
|
||||||
export type TActionSheetOptions = {
|
export type TActionSheetOptions = {
|
||||||
options: TActionSheetOptionsItem[];
|
options: TActionSheetOptionsItem[];
|
||||||
headerHeight: number;
|
headerHeight?: number;
|
||||||
customHeader: React.ReactElement | null;
|
customHeader?: React.ReactElement | null;
|
||||||
hasCancel?: boolean;
|
hasCancel?: boolean;
|
||||||
};
|
};
|
||||||
interface IActionSheetProvider {
|
interface IActionSheetProvider {
|
||||||
|
|
|
@ -243,7 +243,6 @@
|
||||||
"Forgot_password": "Forgot your password?",
|
"Forgot_password": "Forgot your password?",
|
||||||
"Forgot_Password": "Forgot Password",
|
"Forgot_Password": "Forgot Password",
|
||||||
"Forward": "Forward",
|
"Forward": "Forward",
|
||||||
"Forward_chat": "Forward chat",
|
|
||||||
"Forward_Chat": "Forward Chat",
|
"Forward_Chat": "Forward Chat",
|
||||||
"Forward_to_department": "Forward to department",
|
"Forward_to_department": "Forward to department",
|
||||||
"Forward_to_user": "Forward to user",
|
"Forward_to_user": "Forward to user",
|
||||||
|
|
|
@ -1321,8 +1321,7 @@ const mapStateToProps = (state: IApplicationState) => ({
|
||||||
viewBroadcastMemberListPermission: state.permissions['view-broadcast-member-list'],
|
viewBroadcastMemberListPermission: state.permissions['view-broadcast-member-list'],
|
||||||
createTeamPermission: state.permissions['create-team'],
|
createTeamPermission: state.permissions['create-team'],
|
||||||
addTeamChannelPermission: state.permissions['add-team-channel'],
|
addTeamChannelPermission: state.permissions['add-team-channel'],
|
||||||
convertTeamPermission: state.permissions['convert-team'],
|
convertTeamPermission: state.permissions['convert-team']
|
||||||
livechatAllowManualOnHold: state.settings.Livechat_allow_manual_on_hold as boolean
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export default connect(mapStateToProps)(withTheme(withDimensions(RoomActionsView)));
|
export default connect(mapStateToProps)(withTheme(withDimensions(RoomActionsView)));
|
||||||
|
|
|
@ -12,7 +12,7 @@ import { events, logEvent } from '../../utils/log';
|
||||||
import { isTeamRoom } from '../../utils/room';
|
import { isTeamRoom } from '../../utils/room';
|
||||||
import { IApplicationState, SubscriptionType, TMessageModel, TSubscriptionModel } from '../../definitions';
|
import { IApplicationState, SubscriptionType, TMessageModel, TSubscriptionModel } from '../../definitions';
|
||||||
import { ChatsStackParamList } from '../../stacks/types';
|
import { ChatsStackParamList } from '../../stacks/types';
|
||||||
import { withActionSheet } from '../../containers/ActionSheet';
|
import { TActionSheetOptions, withActionSheet } from '../../containers/ActionSheet';
|
||||||
import i18n from '../../i18n';
|
import i18n from '../../i18n';
|
||||||
import { showConfirmationAlert, showErrorAlert } from '../../utils/info';
|
import { showConfirmationAlert, showErrorAlert } from '../../utils/info';
|
||||||
import { closeRoom } from '../../actions/room';
|
import { closeRoom } from '../../actions/room';
|
||||||
|
@ -31,7 +31,7 @@ interface IRightButtonsProps {
|
||||||
status?: string;
|
status?: string;
|
||||||
dispatch: Dispatch;
|
dispatch: Dispatch;
|
||||||
encrypted?: boolean;
|
encrypted?: boolean;
|
||||||
showActionSheet: Function; // TODO: Change to proper type
|
showActionSheet: (item: TActionSheetOptions) => void;
|
||||||
transferLivechatGuestPermission: boolean;
|
transferLivechatGuestPermission: boolean;
|
||||||
navigation: StackNavigationProp<ChatsStackParamList, 'RoomView'>;
|
navigation: StackNavigationProp<ChatsStackParamList, 'RoomView'>;
|
||||||
omnichannelPermissions: {
|
omnichannelPermissions: {
|
||||||
|
|
Loading…
Reference in New Issue