test(web): 剧集组组件测试按 lint 规范传 children
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Cxwgnn2pbzQ7rXv3rq7fei
This commit is contained in:
1 parent
22f0f2b06a
commit
965c68405e
2 files changed
+10
-4
No files matched your search
@@ -201,7 +201,7 @@ function resultToast(r: EpisodeGroupSetResult) {
|
||||
* 作品页「季与集」顶部的季集结构切换:只有 TMDB 有剧集组(或作品已选了剧集组)时出现。
|
||||
* 选中当前结构时显示 children(现有的季与集);选中其它结构时显示该结构的季卡片预览与「改用这套结构」。
|
||||
*/
|
||||
export function EpisodeStructureSwitcher({ entityId, children }: { entityId: string; children: ReactNode }) {
|
||||
export function EpisodeStructureSwitcher({ entityId, children }: { entityId: string; children?: ReactNode }) {
|
||||
const groups = useEpisodeGroups(entityId);
|
||||
const options = structureOptions(groups.data);
|
||||
const current = groups.data?.current?.groupId ?? null;
|
||||
|
||||
Reference in new issue
Block a user