Skip to content

Commit

Permalink
doc: update title of "new bot" dialog (#4063)
Browse files Browse the repository at this point in the history
* draft

* Update constants.ts

* Revert "Update constants.ts"

This reverts commit a736393.

Co-authored-by: Andy Brown <asbrown002@gmail.com>
  • Loading branch information
zxyanliu and a-b-r-o-w-n committed Sep 14, 2020
1 parent f2a365a commit 2315eeb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ const DefineConversation: React.FC<DefineConversationProps> = (props) => {
<Fragment>
<DialogWrapper
isOpen
{...DialogCreationCopy.DEFINE_CONVERSATION_OBJECTIVE}
{...DialogCreationCopy.DEFINE_BOT_PROJECT}
dialogType={DialogTypes.CreateFlow}
onDismiss={onDismiss}
>
Expand Down
8 changes: 8 additions & 0 deletions Composer/packages/client/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,14 @@ export const DialogCreationCopy = {
`What can the user accomplish through this conversation? For example, BookATable, OrderACoffee etc.`
),
},
DEFINE_BOT_PROJECT: {
title: formatMessage('Create a bot project'),
subText: formatMessage(`Specify a name, description, and location for your new bot project.`),
},
DEFINE_DIALOG: {
title: formatMessage('Create a dialog'),
subText: formatMessage(`Specify a name and description for your new dialog.`),
},
SELECT_LOCATION: {
title: formatMessage('Select a Bot'),
subText: formatMessage('Which bot do you want to open?'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export const CreateDialogModal: React.FC<CreateDialogModalProps> = (props) => {
<DialogWrapper
isOpen={isOpen}
onDismiss={onDismiss}
{...DialogCreationCopy.DEFINE_CONVERSATION_OBJECTIVE}
{...DialogCreationCopy.DEFINE_DIALOG}
dialogType={DialogTypes.DesignFlow}
>
<form onSubmit={handleSubmit}>
Expand Down

0 comments on commit 2315eeb

Please sign in to comment.