Skip to content

Commit

Permalink
fix(use-tabs): correct compute-scroll-into-view import
Browse files Browse the repository at this point in the history
  • Loading branch information
megheaiulian committed Apr 9, 2024
1 parent f58549a commit d4f0e48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/use-tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { notifyProperty } from '@neovici/cosmoz-utils/hooks/use-notify-property'
/* eslint-disable-next-line import/no-unresolved */
import { useHashParam, link } from '@neovici/cosmoz-router/use-hash-param';
import { choose, collect, getName, isValid } from './utils';
import computeScroll from 'compute-scroll-into-view';
import compute from 'compute-scroll-into-view';

const useTabSelectedEffect = (host, selectedTab) => {
useEffect(() => {
Expand Down Expand Up @@ -39,7 +39,7 @@ const useTabSelectedEffect = (host, selectedTab) => {
if (!el) {
return;
}
computeScroll(el, {
compute(el, {
block: 'nearest',
inline: 'center',
boundary: el.parentElement,
Expand Down

0 comments on commit d4f0e48

Please sign in to comment.