chore: update hooks import
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user