add editor

This commit is contained in:
taDuc
2026-05-02 02:48:17 +07:00
parent 41af501b51
commit a74047fd09
62 changed files with 9049 additions and 9 deletions
+7 -1
View File
@@ -10,6 +10,7 @@ import Swal from "sweetalert2";
import PageBreadcrumb from "@/components/common/PageBreadCrumb";
import { apiAddProjectMember, apiChangeProjectOwner, apiDeleteProject, apiGetProjectDetail, apiRemoveProjectMember, apiUpdateProject, apiUpdateProjectMemberRole } from "@/service/projectService";
import Loading from "@/app/loading";
import Button from "@/components/ui/button/Button";
type TabType = "overview" | "members" | "settings";
@@ -256,7 +257,7 @@ export default function ProjectDetailsPage() {
</span>
</div>
<div className="flex gap-4">
<div className="flex items-center gap-4">
{[
{
id: "overview",
@@ -305,6 +306,11 @@ export default function ProjectDetailsPage() {
)}
</button>
))}
<div className="flex-1" />
<Button size="sm" variant="outline" onClick={() => router.push(`/editor/${id}`)}>
Mo editor
</Button>
</div>
</div>
</div>
+10 -2
View File
@@ -217,7 +217,15 @@ export default function ProjectsPage() {
</div>
</div>
<div className="flex items-center mt-4 md:mt-0 w-[120px] justify-end shrink-0">
<div className="flex items-center mt-4 md:mt-0 gap-10 w-[240px] justify-end shrink-0">
<Button
size="sm"
variant="outline"
onClick={() => router.push(`/editor/${project.id}`)}
>
Editor
</Button>
<div className="flex -space-x-2 overflow-hidden">
{project.members && project.members.length > 0 ? (
<>
@@ -330,4 +338,4 @@ export default function ProjectsPage() {
</Modal>
</div>
);
}
}