Skip to content

Commit

Permalink
deps: bump react-bus from 3.0.0 to 4.0.0 (#3166)
Browse files Browse the repository at this point in the history
* deps: bump react-bus from 3.0.0 to 4.0.0

Bumps [react-bus](https://github.com/goto-bus-stop/react-bus) from 3.0.0 to 4.0.0.
- [Release notes](https://github.com/goto-bus-stop/react-bus/releases)
- [Changelog](https://github.com/goto-bus-stop/react-bus/blob/default/CHANGELOG.md)
- [Commits](goto-bus-stop/react-bus@v3.0.0...v4.0.0)

---
updated-dependencies:
- dependency-name: react-bus
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* Fix type

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Renée Kooi <[email protected]>
  • Loading branch information
dependabot[bot] and goto-bus-stop authored Dec 17, 2024
1 parent df92731 commit ac92895
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
21 changes: 10 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"react": "^18.0.0",
"react-abstract-autocomplete": "^2.0.3",
"react-async-hook": "^4.0.0",
"react-bus": "^3.0.0",
"react-bus": "^4.0.0",
"react-dom": "^18.0.0",
"react-google-button": "^0.8.0",
"react-markdown": "^9.0.1",
Expand Down
3 changes: 2 additions & 1 deletion src/components/Chat/ChatMessages.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ function ChatMessages({

// Accept externally controlled scrolling using the global event bus, so the chat input box
// can tell us to scroll up or down.
const handleExternalScroll = useCallback((direction?: number | 'start' | 'end') => {
const handleExternalScroll = useCallback((arg: unknown) => {
const direction = arg as number | 'start' | 'end';
const el = container.current;
if (!el || direction == null) {
return;
Expand Down

0 comments on commit ac92895

Please sign in to comment.