diff --git a/components/FamousTemplate.tsx b/components/FamousTemplate.tsx index 320fc6a..282ef25 100644 --- a/components/FamousTemplate.tsx +++ b/components/FamousTemplate.tsx @@ -30,7 +30,16 @@ const FamousTemplate: React.FC = ({ showTabs = true }) => { const [isItemGenerating, setIsItemGenerating] = useState<{ [key: string]: boolean }>({}) const [activeTemplateId, setActiveTemplateId] = useState(null) const [isPreviewReady, setIsPreviewReady] = useState(false) - const [activeTab, setActiveTab] = useState<"all" | "music" | "animation" | "fantasy">("all") + const [activeTab, setActiveTab] = useState("all") + const tabMap = { + all: "all", + narrative: "narrative", + music_video: "music video", + education: "education", + commercial: "commercial", + "2d_anime": "2d anime", + "3d_anime": "3d anime", + } useEffect(() => { void getTemplateStoryList() @@ -52,7 +61,7 @@ const FamousTemplate: React.FC = ({ showTabs = true }) => { {showTabs && (
- {(["all", "music", "animation", "fantasy"] as const).map((tab) => ( + {(["all", "narrative", "music_video", "education", "commercial", "2d_anime", "3d_anime"] as const).map((tab) => ( ))}
diff --git a/components/pages/create-video/CreateInput/ConfigPanel.tsx b/components/pages/create-video/CreateInput/ConfigPanel.tsx index da0ae76..0a8b595 100644 --- a/components/pages/create-video/CreateInput/ConfigPanel.tsx +++ b/components/pages/create-video/CreateInput/ConfigPanel.tsx @@ -9,7 +9,6 @@ import { WandSparkles, RectangleHorizontal, RectangleVertical } from 'lucide-rea import { Dropdown, Tooltip } from 'antd'; import { LanguageOptions, VideoDurationOptions } from './config-options'; import type { ConfigOptions, LanguageValue, VideoDurationValue } from './config-options'; -import { PortraitAnimeSelector } from './PortraitAnimeSelector'; interface ConfigPanelProps { /** Current configuration options */ @@ -149,12 +148,6 @@ export const ConfigPanel = ({ - - {/* Portrait/Anime selector */} - onConfigChange('pcode', v, true)} - /> ); };