mirror of
https://github.com/Qortal/qapp-core.git
synced 2025-07-12 20:31:21 +00:00
update peer dependencies
This commit is contained in:
parent
0933cb33ae
commit
9e6c1b2bb5
1424
package-lock.json
generated
1424
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "qapp-core",
|
"name": "qapp-core",
|
||||||
"version": "1.0.37",
|
"version": "1.0.39",
|
||||||
"description": "Qortal's core React library with global state, UI components, and utilities",
|
"description": "Qortal's core React library with global state, UI components, and utilities",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"module": "dist/index.mjs",
|
"module": "dist/index.mjs",
|
||||||
|
@ -319,6 +319,7 @@ export const VideoPlayer = ({
|
|||||||
useVideoPlayerHotKeys(hotkeyHandlers);
|
useVideoPlayerHotKeys(hotkeyHandlers);
|
||||||
|
|
||||||
const updateProgress = useCallback(() => {
|
const updateProgress = useCallback(() => {
|
||||||
|
if(!isPlaying) return
|
||||||
const player = playerRef?.current;
|
const player = playerRef?.current;
|
||||||
if (!player || typeof player?.currentTime !== "function") return;
|
if (!player || typeof player?.currentTime !== "function") return;
|
||||||
|
|
||||||
@ -327,7 +328,7 @@ export const VideoPlayer = ({
|
|||||||
setProgress(videoLocation, currentTime);
|
setProgress(videoLocation, currentTime);
|
||||||
setLocalProgress(currentTime);
|
setLocalProgress(currentTime);
|
||||||
}
|
}
|
||||||
}, [videoLocation]);
|
}, [videoLocation, isPlaying]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (videoLocation) {
|
if (videoLocation) {
|
||||||
|
@ -9,6 +9,7 @@ export default defineConfig({
|
|||||||
'@mui/material',
|
'@mui/material',
|
||||||
'@mui/system',
|
'@mui/system',
|
||||||
'@emotion/react',
|
'@emotion/react',
|
||||||
'@emotion/styled'
|
'@emotion/styled',
|
||||||
|
'react-dom', 'react-router-dom'
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user