feat: change route path id
This commit is contained in:
@@ -199,7 +199,7 @@ function CourseDetail() {
|
||||
<Button
|
||||
variant="outline"
|
||||
className="rounded-xl bg-app-surface-muted text-app-text hover:bg-app-interactive-hover"
|
||||
onClick={() => navigate(`/courses/${courseId}/edit`)}
|
||||
onClick={() => navigate(`/courses/edit/${courseId}`)}
|
||||
>
|
||||
<HiOutlinePencil className="w-4 h-4 mr-2" />
|
||||
Edit
|
||||
@@ -416,7 +416,7 @@ function CourseDetail() {
|
||||
<div className="col-span-1 flex items-center justify-end gap-1">
|
||||
<button
|
||||
onClick={() =>
|
||||
navigate(`/courses/${courseId}/lessons/${lesson.id}/edit`)
|
||||
navigate(`/courses/${courseId}/lessons/edit/${lesson.id}`)
|
||||
}
|
||||
className="w-8 h-8 rounded-lg flex items-center justify-center text-app-text-muted hover:text-app-primary hover:bg-app-primary-soft transition-colors"
|
||||
title="Edit"
|
||||
|
||||
Reference in New Issue
Block a user