Rename movie components to group (#5038)

This commit is contained in:
WithoutPants
2024-07-03 14:17:02 +10:00
committed by GitHub
parent 2739696813
commit a3e72b61ee
38 changed files with 36 additions and 36 deletions

View File

@@ -0,0 +1,27 @@
import React from "react";
import * as GQL from "src/core/generated-graphql";
import { GroupCard } from "src/components/Groups/GroupCard";
interface ISceneGroupPanelProps {
scene: GQL.SceneDataFragment;
}
export const SceneGroupPanel: React.FC<ISceneGroupPanelProps> = (
props: ISceneGroupPanelProps
) => {
const cards = props.scene.groups.map((sceneGroup) => (
<GroupCard
key={sceneGroup.group.id}
group={sceneGroup.group}
sceneIndex={sceneGroup.scene_index ?? undefined}
/>
));
return (
<>
<div className="row justify-content-center">{cards}</div>
</>
);
};
export default SceneGroupPanel;