chore: update hooks import

This commit is contained in:
jialin
2026-04-24 14:28:30 +08:00
committed by jialin
parent a795544074
commit 48b357b1c6
61 changed files with 11384 additions and 3197 deletions
@@ -67,8 +67,9 @@ const AudioInput: React.FC<AudioInputProps> = (props) => {
const sampleRate = 44100; // mp3
const initAudioContext = useCallback(() => {
audioContext.current = new (window.AudioContext ||
window.webkitAudioContext)();
audioContext.current = new (
window.AudioContext || window.webkitAudioContext
)();
analyser.current = audioContext.current.createAnalyser();
analyser.current.fftSize = 512;
@@ -1,5 +1,5 @@
import { HEADER_HEIGHT } from '@/config/settings';
import useOverlayScroller from '@/hooks/use-overlay-scroller';
import { useOverlayScroller } from '@gpustack/core-ui';
import _ from 'lodash';
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
import CompareContext from '../../config/compare-context';
@@ -1,4 +1,4 @@
import useOverlayScroller from '@/hooks/use-overlay-scroller';
import { useOverlayScroller } from '@gpustack/core-ui';
import classNames from 'classnames';
import React, { useEffect } from 'react';
import s from '../style/params-container.module.less';