@anker-in/campaign-ui 0.1.8 → 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anker-in/campaign-ui",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "type": "commonjs",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "types": "./dist/cjs/index.d.ts",
@@ -172,7 +172,8 @@ const Chat = (props: ChatProps) => {
172
172
  <Suggestions currentSuggestions={currentSuggestions} />
173
173
  </Messages>
174
174
  )}
175
- Button={({ open, setOpen: setOpenDefault }) => {
175
+ Button={props => {
176
+ const { open, setOpen: setOpenDefault } = props as any
176
177
  const Button = popup?.Button || DefaultButton
177
178
  // eslint-disable-next-line react-hooks/rules-of-hooks
178
179
  useEffect(() => {