Skip to content

Commit ce93c46

Browse files
committed
Use <DecoratorComposer>
1 parent d99c642 commit ce93c46

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

__tests__/html/fluentTheme/withCustomDecorator.html

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@
2727
const {
2828
React,
2929
ReactDOM: { render },
30-
WebChat: { FluentThemeProvider, ReactWebChat }
30+
WebChat: {
31+
decorator: { DecoratorComposer },
32+
FluentThemeProvider,
33+
ReactWebChat
34+
}
3135
} = window; // Imports in UMD fashion.
3236

3337
function Flair({ children }) {
@@ -51,7 +55,6 @@
5155

5256
const App = () => (
5357
<ReactWebChat
54-
decoratorMiddleware={decoratorMiddleware}
5558
directLine={directLine}
5659
store={store}
5760
styleOptions={{
@@ -63,7 +66,9 @@
6366

6467
render(
6568
<FluentThemeProvider>
66-
<App />
69+
<DecoratorComposer middleware={decoratorMiddleware}>
70+
<App />
71+
</DecoratorComposer>
6772
</FluentThemeProvider>,
6873
document.getElementById('webchat')
6974
);

0 commit comments

Comments
 (0)