@@ -120,7 +120,6 @@ export function StreamView({ path, streamParticle }: StreamViewProps) {
|
|||||||
next,
|
next,
|
||||||
prev,
|
prev,
|
||||||
goTo,
|
goTo,
|
||||||
goToParticle,
|
|
||||||
pause,
|
pause,
|
||||||
resume,
|
resume,
|
||||||
} = useStreamPlayback(streamParticle, path);
|
} = useStreamPlayback(streamParticle, path);
|
||||||
@@ -232,11 +231,6 @@ export function StreamView({ path, streamParticle }: StreamViewProps) {
|
|||||||
[prev, next],
|
[prev, next],
|
||||||
);
|
);
|
||||||
|
|
||||||
const onLocalParticleCreated = useCallback(
|
|
||||||
(particleId: string) => {
|
|
||||||
goToParticle(particleId);
|
|
||||||
}, [goToParticle]);
|
|
||||||
|
|
||||||
if (children.length === 0) {
|
if (children.length === 0) {
|
||||||
return (
|
return (
|
||||||
<div className="flex h-full flex-col items-center justify-center gap-4 bg-black text-white">
|
<div className="flex h-full flex-col items-center justify-center gap-4 bg-black text-white">
|
||||||
@@ -321,7 +315,6 @@ export function StreamView({ path, streamParticle }: StreamViewProps) {
|
|||||||
networkId={networkId}
|
networkId={networkId}
|
||||||
targetPath={path}
|
targetPath={path}
|
||||||
onActiveChange={setComposeActive}
|
onActiveChange={setComposeActive}
|
||||||
onParticleCreated={onLocalParticleCreated}
|
|
||||||
disabled={streamParticle.status === "closed"}
|
disabled={streamParticle.status === "closed"}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user