diff --git a/app/(dashboard)/bussines/task/[id]/page.tsx b/app/(dashboard)/bussines/task/[id]/page.tsx
index 658a43b..7a1d5b8 100644
--- a/app/(dashboard)/bussines/task/[id]/page.tsx
+++ b/app/(dashboard)/bussines/task/[id]/page.tsx
@@ -3,7 +3,7 @@ import { buttonVariants } from "@/components/ui/button"
import Link from "next/link"
-export default async function BussinesDetails({
+export default async function TasksDetails({
params,
}: {
params: Promise<{ id: string }>
@@ -14,12 +14,12 @@ export default async function BussinesDetails({
console.log(data)
return (
- Back
+ Back
{
- data.map((item: any) => item.name)
+ data.map((item: any) => item.title)
}
{id}
diff --git a/app/(dashboard)/bussines/task/edit/[id]/page.tsx b/app/(dashboard)/bussines/task/edit/[id]/page.tsx
new file mode 100644
index 0000000..72ad772
--- /dev/null
+++ b/app/(dashboard)/bussines/task/edit/[id]/page.tsx
@@ -0,0 +1,30 @@
+import ButtonsExport from "@/components/shared/detay/buttons-export"
+import { buttonVariants } from "@/components/ui/button"
+import Link from "next/link"
+
+
+export default async function TaskEdit({
+ params,
+}: {
+ params: Promise<{ id: string }>
+}) {
+ const id = (await params).id
+ const response = await fetch(`https://crm-backend-production-e80f.up.railway.app/api/tasks/${id}`, { cache: 'no-store' })
+ const data = await response.json()
+ console.log(data)
+ return (
+
+ Back
+
+
+
+ Task Details
+ {
+ data.map((item: any) => item.title)
+ }
+ {id}
+
+
+
+
)
+}
\ No newline at end of file
diff --git a/components/shared/datatables/task/task-table.tsx b/components/shared/datatables/task/task-table.tsx
index 5b15777..da55ffb 100644
--- a/components/shared/datatables/task/task-table.tsx
+++ b/components/shared/datatables/task/task-table.tsx
@@ -122,20 +122,16 @@ export const columns: ColumnDef
[] = [
Actions
-
+
Show Details
-
+
Edit
-
-
- Add Reminder
-
-
+
}
diff --git a/lib/utils.ts b/lib/utils.ts
index de83e0e..b735ef9 100644
--- a/lib/utils.ts
+++ b/lib/utils.ts
@@ -6,7 +6,6 @@ export function cn(...inputs: ClassValue[]) {
}
-
export function formatToTurkeyTime(dateString: string) {
const date = new Date(dateString); // Tarihi oluştur
return date.toLocaleString("tr-TR", {