Skip to content

Commit

Permalink
refactor: use import {compute} instead of import compute
Browse files Browse the repository at this point in the history
  • Loading branch information
diogoredin committed Sep 13, 2023
1 parent ed4aaea commit fac0c4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Select/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import React, {
FC,
} from 'react'
import styled from '@emotion/styled'
import computeScrollIntoView from 'compute-scroll-into-view'
import { compute } from 'compute-scroll-into-view'
import { color, space, lineHeight, radius, fontSize } from '../../theme'
import {
Input,
Expand Down Expand Up @@ -184,7 +184,7 @@ export const Select: FC<SelectProps> = ({
menuNode: HTMLUListElement | null
) {
if (node === null) return false
const actions = computeScrollIntoView(node, {
const actions = compute(node, {
boundary: menuNode,
block: 'nearest',
scrollMode: 'if-needed',
Expand Down

0 comments on commit fac0c4f

Please sign in to comment.