fix: 일정 폼 구조 수정

- CategorySelector를 components/pc/admin/schedule/로 이동
- YouTube 수정 라우트 수정: /admin/schedule/:id/edit/youtube

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
caadiq 2026-01-22 21:15:32 +09:00
parent 1d5626568a
commit 25d74d098d
4 changed files with 3 additions and 2 deletions

View file

@ -88,7 +88,7 @@ function App() {
<Route path="/admin/schedule/new" element={<AdminScheduleFormPage />} />
<Route path="/admin/schedule/new-legacy" element={<AdminScheduleForm />} />
<Route path="/admin/schedule/:id/edit" element={<AdminScheduleForm />} />
<Route path="/admin/schedule/youtube/:id/edit" element={<AdminYouTubeEditForm />} />
<Route path="/admin/schedule/:id/edit/youtube" element={<AdminYouTubeEditForm />} />
<Route path="/admin/schedule/categories" element={<AdminScheduleCategory />} />
<Route path="/admin/schedule/dict" element={<AdminScheduleDict />} />
<Route path="/admin/schedule/bots" element={<AdminScheduleBots />} />

View file

@ -0,0 +1 @@
export { default as CategorySelector } from './CategorySelector';

View file

@ -5,7 +5,7 @@ import { Home, ChevronRight } from "lucide-react";
import AdminLayout from "@/components/pc/admin/Layout";
import { useAdminAuth } from "@/hooks/pc/admin";
import * as categoriesApi from "@/api/pc/admin/categories";
import CategorySelector from "./components/CategorySelector";
import CategorySelector from "@/components/pc/admin/schedule/CategorySelector";
import YouTubeForm from "./YouTubeForm";
import XForm from "./XForm";