Skip to content

Commit 2d4adc4

Browse files
committed
Fix nits
1 parent dc189ef commit 2d4adc4

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

__tests__/html/fluentTheme/hideAttachFileButton.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
await pageConditions.uiConnected();
4444

4545
expect(warnings).toEqual([
46-
'Web Chat: "hideUploadButton" is deprecated. Please use "disableFileUpload" instead.'
46+
'botframework-webchat: `styleOptions.hideUploadButton` is being deprecated in favor of `styleOptions.disableFileUpload`. The option will be removed on or after 2027-07-14.'
4747
]);
4848

4949
// THEN: No attach button should be render.

packages/api/src/patchStyleOptionsFromDeprecatedProps.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ export default function patchStyleOptionsFromDeprecatedProps(styleOptions) {
1212

1313
// Rectify deprecated "hideUploadButton" into "disableFileUpload"
1414
if (styleOptions.hideUploadButton !== undefined) {
15-
console.warn('botframework-webchat: `styleOptions.hideUploadButton` is being deprecated in favor of `styleOptions.disableFileUpload`. The option will be removed on or after 2027-07-14.');
15+
console.warn(
16+
'botframework-webchat: `styleOptions.hideUploadButton` is being deprecated in favor of `styleOptions.disableFileUpload`. The option will be removed on or after 2027-07-14.'
17+
);
1618

1719
styleOptions = updateIn(styleOptions, ['disableFileUpload'], () => !!styleOptions.hideUploadButton);
1820
}

0 commit comments

Comments
 (0)