diff --git a/native/chat/settings/thread-settings-promote-sidebar.react.js b/native/chat/settings/thread-settings-promote-sidebar.react.js --- a/native/chat/settings/thread-settings-promote-sidebar.react.js +++ b/native/chat/settings/thread-settings-promote-sidebar.react.js @@ -23,6 +23,25 @@ +promoteSidebar: () => mixed, }; class ThreadSettingsPromoteSidebar extends React.PureComponent { + onClick = () => { + Alert.alert( + 'Are you sure?', + "This promoting a sidebar to a full thread can't be undone.", + [ + { + text: 'Cancel', + style: 'cancel', + }, + { + text: 'Yes', + onPress: () => { + this.props.promoteSidebar(); + }, + }, + ], + ); + }; + render() { const { panelIosHighlightUnderlay, @@ -32,10 +51,11 @@ this.props.loadingStatus === 'loading' ? ( ) : null; + return (