From 6fcdb7d15bbd2787abe4608f9762bf5c92a779e7 Mon Sep 17 00:00:00 2001 From: Cori Hudson Date: Fri, 3 Jan 2020 10:56:57 -0500 Subject: [PATCH] feat: make action button on channel picker screen go back to settings --- shared/chat/conversation/bot/install.tsx | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/shared/chat/conversation/bot/install.tsx b/shared/chat/conversation/bot/install.tsx index bfba6a56f99f..2ed38f08dd67 100644 --- a/shared/chat/conversation/bot/install.tsx +++ b/shared/chat/conversation/bot/install.tsx @@ -365,7 +365,8 @@ const InstallBotPopup = (props: Props) => { const showReviewButton = !installScreen && !inTeam const showRemoveButton = inTeam && !installScreen const showEditButton = inTeam && !inTeamUnrestricted && !installScreen - const showSaveButton = inTeam && installScreen + const showSaveButton = inTeam && installScreen && !channelPickerContent + const showDoneButton = inTeam && channelPickerContent const installButton = showInstallButton && ( { waitingKey={Constants.waitingKeyBotAdd} /> ) + + const doneButton = showDoneButton && ( + setChannelPickerScreen(false)} + mode="Primary" + type="Default" + /> + ) const enabled = !!conversationIDKey && inTeam !== undefined return ( { content: enabled && ( + {doneButton} {editButton} {saveButton} {reviewButton}