From c9082a9f58364ec4139e60b11d47f8e57a11ce88 Mon Sep 17 00:00:00 2001 From: ducanh Date: Sat, 30 May 2026 20:22:09 +0700 Subject: [PATCH 1/5] change text --- src/app/user/projects/[id]/page.tsx | 54 ++++++++++++++--------------- 1 file changed, 26 insertions(+), 28 deletions(-) diff --git a/src/app/user/projects/[id]/page.tsx b/src/app/user/projects/[id]/page.tsx index 880d2ce..44a36f3 100644 --- a/src/app/user/projects/[id]/page.tsx +++ b/src/app/user/projects/[id]/page.tsx @@ -143,7 +143,6 @@ export default function ProjectDetailsPage() { }; const handleRemoveMember = async (userId: string) => { - // 1. Hiển thị hộp thoại xác nhận bằng SweetAlert2 const result = await Swal.fire({ title: "Xác nhận xóa?", text: "Bạn có chắc chắn muốn xóa thành viên này khỏi dự án?", @@ -263,18 +262,18 @@ export default function ProjectDetailsPage() { {[ { id: "overview", - label: "Overview", + label: "Tổng quan", icon: "M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z", }, { id: "members", - label: `Members`, + label: `Thành viên`, count: project.members?.length || 0, icon: "M12 4.354a4 4 0 110 5.292M15 21H3v-1a6 6 0 0112 0v1zm0 0h6v-1a6 6 0 00-9-5.197M13 7a4 4 0 11-8 0 4 4 0 018 0z", }, { id: "settings", - label: "Settings", + label: "Cài đặt", icon: "M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z", }, ].map((tab) => ( @@ -324,7 +323,7 @@ export default function ProjectDetailsPage() {
- About + Thông tin
{project.description || ( @@ -339,7 +338,7 @@ export default function ProjectDetailsPage() {

- Owner + Chủ dự án

@@ -379,7 +378,7 @@ export default function ProjectDetailsPage() { {activeTab === "members" && (

- Manage access + Quản lý quyền truy cập

- - + +
@@ -449,8 +448,8 @@ export default function ProjectDetailsPage() { } className="text-sm px-3 py-1.5 rounded-md border border-gray-300 dark:border-[#30363d] bg-white dark:bg-[#21262d] outline-none hover:bg-gray-50 dark:hover:bg-[#30363d] cursor-pointer transition-colors" > - - + +