mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-28 13:31:32 +08:00
refactor(video): remove mock data and use real videos from provider
This commit is contained in:
parent
258666e382
commit
0cafdeb540
@ -2,7 +2,6 @@
|
||||
|
||||
import { Divider } from '@heroui/react'
|
||||
import { Navbar, NavbarCenter } from '@renderer/components/app/Navbar'
|
||||
import { mockVideos } from '@renderer/config/models/video'
|
||||
import { useProvider } from '@renderer/hooks/useProvider'
|
||||
import { SystemProviderIds } from '@renderer/types'
|
||||
import { CreateVideoParams } from '@renderer/types/video'
|
||||
@ -49,7 +48,7 @@ export const VideoPage = () => {
|
||||
)
|
||||
|
||||
const { videos } = useVideos(providerId)
|
||||
const activeVideo = useMemo(() => mockVideos.find((v) => v.id === activeVideoId), [activeVideoId])
|
||||
const activeVideo = useMemo(() => videos.find((v) => v.id === activeVideoId), [activeVideoId])
|
||||
|
||||
return (
|
||||
<div className="flex flex-1 flex-col">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user