update useSlider

This commit is contained in:
lb 2023-11-01 14:27:01 +08:00
parent e244e35cad
commit 4ce50704f3
2 changed files with 22 additions and 22 deletions

View File

@ -44,5 +44,5 @@ export default function useSlider(defaultSize) {
};
}, [value]);
return { styles, setValue, Slider };
return { styles, setValue };
}

View File

@ -6,16 +6,16 @@ import BottomBar from '../components/模块组件/总览/Bottom';
import RightBar from '../components/模块组件/总览/RightSide';
import CenterTopData from '../components/模块组件/总览/CenterTop';
import { SocketContextProvider } from '../store/socket-data-provider';
import useSlider from '../hooks/useSlider';
import useSlider, { Slider } from '../hooks/useSlider';
import V3DBG from '../assets/V3DBG.png';
// import V3D from './V3D';
export default function index() {
const { styles, setValue, Slider } = useSlider(75);
const { styles, setValue } = useSlider(75);
return (
// <FullScreenContainer>
<>
<SocketContextProvider>
<div id="FullScreen" style={styles}>
<Head />
@ -36,6 +36,6 @@ export default function index() {
</div>
<Slider setValue={setValue} />
</SocketContextProvider>
// </FullScreenContainer>
</>
);
}