Skip to content

Commit

Permalink
feat: make action button on channel picker screen go back to settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Cori Hudson committed Jan 3, 2020
1 parent 9018006 commit 6fcdb7d
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion shared/chat/conversation/bot/install.tsx
Expand Up @@ -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 && (
<Kb.WaitingButton
fullWidth={true}
Expand Down Expand Up @@ -422,6 +423,16 @@ const InstallBotPopup = (props: Props) => {
waitingKey={Constants.waitingKeyBotAdd}
/>
)

const doneButton = showDoneButton && (
<Kb.Button
fullWidth={true}
label="Done"
onClick={() => setChannelPickerScreen(false)}
mode="Primary"
type="Default"
/>
)
const enabled = !!conversationIDKey && inTeam !== undefined
return (
<Kb.Modal
Expand All @@ -441,6 +452,7 @@ const InstallBotPopup = (props: Props) => {
content: enabled && (
<Kb.Box2 direction="vertical" gap="tiny" fullWidth={true}>
<Kb.ButtonBar direction="column">
{doneButton}
{editButton}
{saveButton}
{reviewButton}
Expand Down

0 comments on commit 6fcdb7d

Please sign in to comment.