diff --git a/app/[locale]/(protected)/contributor/agenda-setting/calender-view.tsx b/app/[locale]/(protected)/contributor/agenda-setting/calender-view.tsx index 13d5db6a..c72dfaef 100644 --- a/app/[locale]/(protected)/contributor/agenda-setting/calender-view.tsx +++ b/app/[locale]/(protected)/contributor/agenda-setting/calender-view.tsx @@ -254,7 +254,7 @@ const CalendarView = ({ categories }: CalendarViewProps) => { isPublish: item.isPublish, start: new Date(item.startDate), end: new Date(item.endDate), - allDay: true, // Sesuaikan jika memang ada event sepanjang hari + allDay: true, extendedProps: { calendar: item.agendaType, description: item.description, @@ -481,7 +481,7 @@ const CalendarView = ({ categories }: CalendarViewProps) => {
{events?.length === 0 ? (
-

Belum ada data

+

{t("no-data-yet")}

) : ( <> @@ -581,7 +581,7 @@ const CalendarView = ({ categories }: CalendarViewProps) => { className="dark:bg-background dark:text-foreground" > - {"Tambahkan Agenda baru"} + {t("addEvent")} ) : ( "" @@ -590,15 +590,15 @@ const CalendarView = ({ categories }: CalendarViewProps) => { {roleId == 2 ? ( - ) : null} - Hasil Pantauan + {t("monitoring-results")} {getModalContent("terkirim")} @@ -714,7 +714,6 @@ const CalendarView = ({ categories }: CalendarViewProps) => { ))}
- {/* Second Row */}
{months.slice(3, 6).map((month) => ( { ))}
- {/* Third Row */}
{months.slice(6, 9).map((month) => ( { ))}
- {/* Fourth Row */}
{months.slice(9, 12).map((month) => ( 0 && categories[0].value); + setAgendaType( + eventCalendar || (categories?.length > 0 && categories[0].value) + ); } setValue("title", event?.event?.title || ""); setValue("description", event?.event?.description || ""); diff --git a/app/[locale]/(protected)/contributor/blog/components/blog-table.tsx b/app/[locale]/(protected)/contributor/blog/components/blog-table.tsx index 66db6815..4ccda3e8 100644 --- a/app/[locale]/(protected)/contributor/blog/components/blog-table.tsx +++ b/app/[locale]/(protected)/contributor/blog/components/blog-table.tsx @@ -25,7 +25,7 @@ import { TableRow, } from "@/components/ui/table"; import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar"; -import { ChevronDown, Search } from "lucide-react"; +import { ChevronDown, Plus, Search } from "lucide-react"; import { cn } from "@/lib/utils"; import { Input } from "@/components/ui/input"; import { InputGroup, InputGroupText } from "@/components/ui/input-group"; @@ -42,11 +42,14 @@ import { } from "@/components/ui/dropdown-menu"; import { Label } from "@/components/ui/label"; import { listEnableCategory } from "@/service/content/content"; +import { useTranslations } from "next-intl"; +import { CardHeader, CardTitle } from "@/components/ui/card"; +import { Link } from "@/i18n/routing"; const BlogTable = () => { const router = useRouter(); const searchParams = useSearchParams(); - + const t = useTranslations("Blog"); const [dataTable, setDataTable] = React.useState([]); const [totalData, setTotalData] = React.useState(1); const [sorting, setSorting] = React.useState([]); @@ -169,198 +172,218 @@ const BlogTable = () => { }; return ( -
-
-
- - - - - - -
-
-
- - - - - -
-

Filter

- {/*

- Simpan -

*/} -
- - {categories.length > 0 ? ( - categories.map((category) => ( -
- handleCheckboxChange(category.id)} - /> - -
- )) - ) : ( -

- No categories found. -

- )} - -
- handleStatusCheckboxChange(1)} - /> - -
-
- handleStatusCheckboxChange(2)} - /> - -
-
- handleStatusCheckboxChange(3)} - /> - -
-
- handleStatusCheckboxChange(4)} - /> - -
-
-
+ +
-
- - - - - - {table - .getAllColumns() - .filter((column) => column.getCanHide()) - .map((column) => { - return ( - - column.toggleVisibility(!!value) - } + + + +
+
+
+ + + + + + +
+
+
+ + + + + +
+

Filter

+
+ + {categories.length > 0 ? ( + categories.map((category) => ( +
- {column.id} - - ); - })} - - + handleCheckboxChange(category.id)} + /> + +
+ )) + ) : ( +

+ No categories found. +

+ )} + +
+ handleStatusCheckboxChange(1)} + /> + +
+
+ handleStatusCheckboxChange(2)} + /> + +
+
+ handleStatusCheckboxChange(3)} + /> + +
+
+ handleStatusCheckboxChange(4)} + /> + +
+
+
+
+
+ + + + + + {table + .getAllColumns() + .filter((column) => column.getCanHide()) + .map((column) => { + return ( + + column.toggleVisibility(!!value) + } + > + {column.id} + + ); + })} + + +
-
- - - {table.getHeaderGroups().map((headerGroup) => ( - - {headerGroup.headers.map((header) => ( - - {header.isPlaceholder - ? null - : flexRender( - header.column.columnDef.header, - header.getContext() - )} - - ))} - - ))} - - - {table.getRowModel().rows?.length ? ( - table.getRowModel().rows.map((row) => ( - - {row.getVisibleCells().map((cell) => ( - - {flexRender(cell.column.columnDef.cell, cell.getContext())} - +
+ + {table.getHeaderGroups().map((headerGroup) => ( + + {headerGroup.headers.map((header) => ( + + {header.isPlaceholder + ? null + : flexRender( + header.column.columnDef.header, + header.getContext() + )} + ))} - )) - ) : ( - - - No results. - - - )} - -
- + ))} + + + {table.getRowModel().rows?.length ? ( + table.getRowModel().rows.map((row) => ( + + {row.getVisibleCells().map((cell) => ( + + {flexRender( + cell.column.columnDef.cell, + cell.getContext() + )} + + ))} + + )) + ) : ( + + + No results. + + + )} + + + +
); }; diff --git a/app/[locale]/(protected)/contributor/blog/page.tsx b/app/[locale]/(protected)/contributor/blog/page.tsx index 71849fb4..1f8e68fc 100644 --- a/app/[locale]/(protected)/contributor/blog/page.tsx +++ b/app/[locale]/(protected)/contributor/blog/page.tsx @@ -11,23 +11,6 @@ const BlogPage = async () => {
- - -
-
- Tabel Indeks -
-
- - - -
-
-
-
diff --git a/app/[locale]/(protected)/contributor/content/audio/components/table-audio.tsx b/app/[locale]/(protected)/contributor/content/audio/components/table-audio.tsx index e5e821d5..05e29ee8 100644 --- a/app/[locale]/(protected)/contributor/content/audio/components/table-audio.tsx +++ b/app/[locale]/(protected)/contributor/content/audio/components/table-audio.tsx @@ -230,8 +230,8 @@ const TableAudio = () => { return (
-
-
+
+
diff --git a/app/[locale]/(protected)/contributor/content/audio/page.tsx b/app/[locale]/(protected)/contributor/content/audio/page.tsx index 756b3272..5702e0e6 100644 --- a/app/[locale]/(protected)/contributor/content/audio/page.tsx +++ b/app/[locale]/(protected)/contributor/content/audio/page.tsx @@ -6,8 +6,10 @@ import { Button } from "@/components/ui/button"; import { Icon } from "@iconify/react/dist/iconify.js"; import TableAudio from "./components/table-audio"; import { Link } from "@/components/navigation"; +import { useTranslations } from "next-intl"; const ReactTableAudioPage = () => { + const t = useTranslations("AnalyticsDashboard"); return (
@@ -20,9 +22,11 @@ const ReactTableAudioPage = () => {

- 0 Rata - rata :0 + {t("average")} :0 +

+

+ {t("Hasil_unggah_disetujui_hari_ini")}

-

Hasil Unggah disetujui hari ini

@@ -31,9 +35,9 @@ const ReactTableAudioPage = () => {

- 0 Rata - rata :0 + {t("average")} :0

-

Hasil Unggah direvisi hari ini

+

{t("Hasil_unggah_direvisi_hari_ini")}

@@ -42,9 +46,9 @@ const ReactTableAudioPage = () => {

- 0 Rata - rata :0 + {t("average")} :0

-

Hasil Unggah ditolak hari ini

+

{t("Hasil_unggah_ditolak_hari_ini")}

@@ -54,13 +58,13 @@ const ReactTableAudioPage = () => {
- Konten Audio + {t("audio")}
{/* {/* diff --git a/app/[locale]/(protected)/contributor/content/spit/page.tsx b/app/[locale]/(protected)/contributor/content/spit/page.tsx index 0208103e..88742142 100644 --- a/app/[locale]/(protected)/contributor/content/spit/page.tsx +++ b/app/[locale]/(protected)/contributor/content/spit/page.tsx @@ -14,7 +14,7 @@ const ReactTableSPITPage = () => {
- Konten SPIT + SPIT
diff --git a/app/[locale]/(protected)/contributor/content/spit/table-spit/table-spit.tsx b/app/[locale]/(protected)/contributor/content/spit/table-spit/table-spit.tsx index 375e5ecb..01ed5e95 100644 --- a/app/[locale]/(protected)/contributor/content/spit/table-spit/table-spit.tsx +++ b/app/[locale]/(protected)/contributor/content/spit/table-spit/table-spit.tsx @@ -164,7 +164,7 @@ const TableSPIT = () => { return (
-
+
diff --git a/app/[locale]/(protected)/contributor/content/teks/components/table-teks.tsx b/app/[locale]/(protected)/contributor/content/teks/components/table-teks.tsx index e3301f9d..dd1924c5 100644 --- a/app/[locale]/(protected)/contributor/content/teks/components/table-teks.tsx +++ b/app/[locale]/(protected)/contributor/content/teks/components/table-teks.tsx @@ -229,8 +229,8 @@ const TableTeks = () => { return (
-
-
+
+
diff --git a/app/[locale]/(protected)/contributor/content/teks/page.tsx b/app/[locale]/(protected)/contributor/content/teks/page.tsx index 73bf6661..56bf11b5 100644 --- a/app/[locale]/(protected)/contributor/content/teks/page.tsx +++ b/app/[locale]/(protected)/contributor/content/teks/page.tsx @@ -7,8 +7,10 @@ import { Button } from "@/components/ui/button"; import { Icon } from "@iconify/react/dist/iconify.js"; import TableTeks from "./components/table-teks"; import { Link } from "@/components/navigation"; +import { useTranslations } from "next-intl"; const ReactTableTeksPage = () => { + const t = useTranslations("AnalyticsDashboard"); return (
@@ -21,9 +23,12 @@ const ReactTableTeksPage = () => {

- 0 Rata - rata :0 + {t("average")} :0 +

+

+ {" "} + {t("Hasil_unggah_disetujui_hari_ini")}

-

Hasil Unggah disetujui hari ini

@@ -32,9 +37,9 @@ const ReactTableTeksPage = () => {

- 0 Rata - rata :0 + {t("average")} :0

-

Hasil Unggah direvisi hari ini

+

{t("Hasil_unggah_direvisi_hari_ini")}

@@ -43,9 +48,9 @@ const ReactTableTeksPage = () => {

- 0 Rata - rata :0 + {t("average")} :0

-

Hasil Unggah ditolak hari ini

+

{t("Hasil_unggah_ditolak_hari_ini")}

@@ -55,14 +60,14 @@ const ReactTableTeksPage = () => {
- Konten Teks + {t("text")}
{/* {/* + +
+
+
+ +
+
+
+ + + + + + +
+
) => + table.getColumn("status")?.setFilterValue(event.target.value) + } + className="max-w-sm " /> - +
-
- ) => - table.getColumn("status")?.setFilterValue(event.target.value) - } - className="max-w-sm " - /> -
-
- - - {table.getHeaderGroups().map((headerGroup) => ( - - {headerGroup.headers.map((header) => ( - - {header.isPlaceholder - ? null - : flexRender( - header.column.columnDef.header, - header.getContext() - )} - - ))} - - ))} - - - {table.getRowModel().rows?.length ? ( - table.getRowModel().rows.map((row) => ( - - {row.getVisibleCells().map((cell) => ( - - {flexRender(cell.column.columnDef.cell, cell.getContext())} - +
+ + {table.getHeaderGroups().map((headerGroup) => ( + + {headerGroup.headers.map((header) => ( + + {header.isPlaceholder + ? null + : flexRender( + header.column.columnDef.header, + header.getContext() + )} + ))} - )) - ) : ( - - - No results. - - - )} - -
- + ))} + + + {table.getRowModel().rows?.length ? ( + table.getRowModel().rows.map((row) => ( + + {row.getVisibleCells().map((cell) => ( + + {flexRender( + cell.column.columnDef.cell, + cell.getContext() + )} + + ))} + + )) + ) : ( + + + No results. + + + )} + + + +
); }; diff --git a/app/[locale]/(protected)/contributor/schedule/event/page.tsx b/app/[locale]/(protected)/contributor/schedule/event/page.tsx index ab934287..b4841627 100644 --- a/app/[locale]/(protected)/contributor/schedule/event/page.tsx +++ b/app/[locale]/(protected)/contributor/schedule/event/page.tsx @@ -12,23 +12,6 @@ const EventPage = async () => {
- - -
-
- Jadwal Event -
-
- - - -
-
-
-
diff --git a/app/[locale]/(protected)/contributor/schedule/press-conference/components/presscon-table.tsx b/app/[locale]/(protected)/contributor/schedule/press-conference/components/presscon-table.tsx index 35e12580..ee8f34e3 100644 --- a/app/[locale]/(protected)/contributor/schedule/press-conference/components/presscon-table.tsx +++ b/app/[locale]/(protected)/contributor/schedule/press-conference/components/presscon-table.tsx @@ -35,6 +35,7 @@ import { Trash2, TrendingDown, TrendingUp, + UploadIcon, } from "lucide-react"; import { Input } from "@/components/ui/input"; import { InputGroup, InputGroupText } from "@/components/ui/input-group"; @@ -42,11 +43,14 @@ import { useRouter, useSearchParams } from "next/navigation"; import TablePagination from "@/components/table/table-pagination"; import columns from "./columns"; import { paginationSchedule } from "@/service/schedule/schedule"; +import { CardHeader, CardTitle } from "@/components/ui/card"; +import { Link } from "@/i18n/routing"; +import { useTranslations } from "next-intl"; const PressConferenceTable = () => { const router = useRouter(); const searchParams = useSearchParams(); - + const t = useTranslations("Schedule"); const [dataTable, setDataTable] = React.useState([]); const [totalData, setTotalData] = React.useState(1); const [sorting, setSorting] = React.useState([]); @@ -122,81 +126,106 @@ const PressConferenceTable = () => { }; return ( -
-
-
- - - - +
+ + +
+
+ {t("press-conference")} {t("schedule")} +
+
+ + + +
+
+
+
+
+
+
+ + + + + + +
+
) => + table.getColumn("status")?.setFilterValue(event.target.value) + } + className="max-w-sm " /> - +
-
- ) => - table.getColumn("status")?.setFilterValue(event.target.value) - } - className="max-w-sm " - /> -
-
- - - {table.getHeaderGroups().map((headerGroup) => ( - - {headerGroup.headers.map((header) => ( - - {header.isPlaceholder - ? null - : flexRender( - header.column.columnDef.header, - header.getContext() - )} - - ))} - - ))} - - - {table.getRowModel().rows?.length ? ( - table.getRowModel().rows.map((row) => ( - - {row.getVisibleCells().map((cell) => ( - - {flexRender(cell.column.columnDef.cell, cell.getContext())} - +
+ + {table.getHeaderGroups().map((headerGroup) => ( + + {headerGroup.headers.map((header) => ( + + {header.isPlaceholder + ? null + : flexRender( + header.column.columnDef.header, + header.getContext() + )} + ))} - )) - ) : ( - - - No results. - - - )} - -
- + ))} + + + {table.getRowModel().rows?.length ? ( + table.getRowModel().rows.map((row) => ( + + {row.getVisibleCells().map((cell) => ( + + {flexRender( + cell.column.columnDef.cell, + cell.getContext() + )} + + ))} + + )) + ) : ( + + + No results. + + + )} + + + +
); }; diff --git a/app/[locale]/(protected)/contributor/schedule/press-conference/page.tsx b/app/[locale]/(protected)/contributor/schedule/press-conference/page.tsx index 2f114314..38284a1e 100644 --- a/app/[locale]/(protected)/contributor/schedule/press-conference/page.tsx +++ b/app/[locale]/(protected)/contributor/schedule/press-conference/page.tsx @@ -2,8 +2,6 @@ import SiteBreadcrumb from "@/components/site-breadcrumb"; import { Button } from "@/components/ui/button"; import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; import PressConferenceTable from "./components/presscon-table"; -import { UploadIcon } from "lucide-react"; -import { Link } from "@/components/navigation"; const PressConferencePage = async () => { return ( @@ -11,23 +9,6 @@ const PressConferencePage = async () => {
- - -
-
- Jadwal Konferensi Pers -
-
- - - -
-
-
-
diff --git a/app/[locale]/(protected)/contributor/schedule/press-release/components/pressrilis-table.tsx b/app/[locale]/(protected)/contributor/schedule/press-release/components/pressrilis-table.tsx index b9391727..cb5938c4 100644 --- a/app/[locale]/(protected)/contributor/schedule/press-release/components/pressrilis-table.tsx +++ b/app/[locale]/(protected)/contributor/schedule/press-release/components/pressrilis-table.tsx @@ -35,6 +35,7 @@ import { Trash2, TrendingDown, TrendingUp, + UploadIcon, } from "lucide-react"; import { Input } from "@/components/ui/input"; import { InputGroup, InputGroupText } from "@/components/ui/input-group"; @@ -43,11 +44,14 @@ import { useRouter, useSearchParams } from "next/navigation"; import TablePagination from "@/components/table/table-pagination"; import columns from "./columns"; import { paginationSchedule } from "@/service/schedule/schedule"; +import { useTranslations } from "next-intl"; +import { CardHeader, CardTitle } from "@/components/ui/card"; +import { Link } from "@/i18n/routing"; const PressReleaseTable = () => { const router = useRouter(); const searchParams = useSearchParams(); - + const t = useTranslations("Schedule"); const [dataTable, setDataTable] = React.useState([]); const [totalData, setTotalData] = React.useState(1); const [sorting, setSorting] = React.useState([]); @@ -123,81 +127,107 @@ const PressReleaseTable = () => { }; return ( -
-
-
- - - - +
+ + +
+
+ {t("press-release")} {t("schedule")} +
+
+ + + +
+
+
+
+
+
+
+ + + + + + +
+
) => + table.getColumn("status")?.setFilterValue(event.target.value) + } + className="w-full " /> - +
-
- ) => - table.getColumn("status")?.setFilterValue(event.target.value) - } - className="max-w-sm " - /> -
-
- - - {table.getHeaderGroups().map((headerGroup) => ( - - {headerGroup.headers.map((header) => ( - - {header.isPlaceholder - ? null - : flexRender( - header.column.columnDef.header, - header.getContext() - )} - - ))} - - ))} - - - {table.getRowModel().rows?.length ? ( - table.getRowModel().rows.map((row) => ( - - {row.getVisibleCells().map((cell) => ( - - {flexRender(cell.column.columnDef.cell, cell.getContext())} - +
+ + {table.getHeaderGroups().map((headerGroup) => ( + + {headerGroup.headers.map((header) => ( + + {header.isPlaceholder + ? null + : flexRender( + header.column.columnDef.header, + header.getContext() + )} + ))} - )) - ) : ( - - - No results. - - - )} - -
- + ))} + + + {table.getRowModel().rows?.length ? ( + table.getRowModel().rows.map((row) => ( + + {row.getVisibleCells().map((cell) => ( + + {flexRender( + cell.column.columnDef.cell, + cell.getContext() + )} + + ))} + + )) + ) : ( + + + No results. + + + )} + + + +
+ \{" "}
); }; diff --git a/app/[locale]/(protected)/contributor/schedule/press-release/page.tsx b/app/[locale]/(protected)/contributor/schedule/press-release/page.tsx index 07daf9fc..bfb6b38b 100644 --- a/app/[locale]/(protected)/contributor/schedule/press-release/page.tsx +++ b/app/[locale]/(protected)/contributor/schedule/press-release/page.tsx @@ -11,23 +11,6 @@ const PressReleasePage = async () => {
- - -
-
- Jadwal Pers Rilis -
-
- - - -
-
-
-
diff --git a/app/[locale]/(protected)/contributor/task/components/task-table.tsx b/app/[locale]/(protected)/contributor/task/components/task-table.tsx index 82617efe..5dca9c2b 100644 --- a/app/[locale]/(protected)/contributor/task/components/task-table.tsx +++ b/app/[locale]/(protected)/contributor/task/components/task-table.tsx @@ -55,11 +55,12 @@ import columns from "./columns"; import { listTask } from "@/service/task"; import { Label } from "@/components/ui/label"; import { format } from "date-fns"; +import { useTranslations } from "next-intl"; const TaskTable = () => { const router = useRouter(); const searchParams = useSearchParams(); - + const t = useTranslations("AnalyticsDashboard"); const [dataTable, setDataTable] = React.useState([]); const [totalData, setTotalData] = React.useState(1); const [sorting, setSorting] = React.useState([]); @@ -205,7 +206,7 @@ const TaskTable = () => { } px-[18px] py-1 transition duration-100 rounded`} > - Atensi Khusus + {t("special-attention")} { px-[18px] py-1 transition duration-100 rounded `} > - Tugas Harian + {t("daily-tasks")}
-
+
@@ -232,19 +233,23 @@ const TaskTable = () => {
-
-
+
+
- @@ -256,7 +261,7 @@ const TaskTable = () => {

Filter

- + { onChange={() => handleStatusCheckboxChange(1)} />
@@ -295,7 +300,7 @@ const TaskTable = () => { onChange={() => handleStatusCheckboxChange(2)} />
diff --git a/app/[locale]/(protected)/contributor/task/page.tsx b/app/[locale]/(protected)/contributor/task/page.tsx index 54d82f79..d79c2c21 100644 --- a/app/[locale]/(protected)/contributor/task/page.tsx +++ b/app/[locale]/(protected)/contributor/task/page.tsx @@ -7,8 +7,10 @@ import SiteBreadcrumb from "@/components/site-breadcrumb"; import { Link } from "@/components/navigation"; import { checkAuthorization, checkLoginSession } from "@/lib/utils"; import React, { useEffect } from "react"; +import { useTranslations } from "next-intl"; const TaskPage = () => { + const t = useTranslations("AnalyticsDashboard"); useEffect(() => { function initState() { checkAuthorization("admin"); // Specify the page, e.g., "admin" or another value @@ -27,13 +29,13 @@ const TaskPage = () => {
- Tabel Penugasan + {t("tabel")} {t("task")}
diff --git a/app/[locale]/(protected)/dashboard/page.tsx b/app/[locale]/(protected)/dashboard/page.tsx index 89ba710b..731daeec 100644 --- a/app/[locale]/(protected)/dashboard/page.tsx +++ b/app/[locale]/(protected)/dashboard/page.tsx @@ -39,25 +39,25 @@ const DashboardPage = () => { value="routine-task" className="data-[state=active]:bg-primary data-[state=active]:text-primary-foreground rounded-md px-6" > - Tugas Rutin + {t("task-routine")} - Penugasan + {t("task")} - Jadwal + {t("schedule")} - Indeks + {t("indeks")} @@ -68,18 +68,18 @@ const DashboardPage = () => {
{ - {"Total Produksi Konten"} + {t("Total-Content-Production")} @@ -106,7 +106,7 @@ const DashboardPage = () => {
- {"Table"} + {t("tabel")} @@ -123,7 +123,7 @@ const DashboardPage = () => {
- Table Penugasan + Tabel Penugasan
@@ -158,8 +158,8 @@ const DashboardPage = () => {
-
-
+
+
Table Indeks
diff --git a/app/[locale]/(protected)/dashboard/routine-task/components/content-table.tsx b/app/[locale]/(protected)/dashboard/routine-task/components/content-table.tsx index 049f3e58..befee683 100644 --- a/app/[locale]/(protected)/dashboard/routine-task/components/content-table.tsx +++ b/app/[locale]/(protected)/dashboard/routine-task/components/content-table.tsx @@ -171,11 +171,11 @@ const ContentTable = () => { return (
-
-
+
+
- + { />
-
+
{/* setSearch(e.target.value)} diff --git a/app/[locale]/(protected)/shared/communication/page.tsx b/app/[locale]/(protected)/shared/communication/page.tsx index 98782bd6..000228d0 100644 --- a/app/[locale]/(protected)/shared/communication/page.tsx +++ b/app/[locale]/(protected)/shared/communication/page.tsx @@ -10,9 +10,11 @@ import { Link, useRouter } from "@/i18n/routing"; import { PlusIcon } from "lucide-react"; import { Button } from "@/components/ui/button"; import InternalTable from "./internal/components/internal-table"; +import { useTranslations } from "next-intl"; const CommunicationPage = () => { const [tab, setTab] = useState("Pertanyaan Internal"); + const t = useTranslations("Communication"); return (
@@ -23,7 +25,7 @@ const CommunicationPage = () => { )} @@ -31,12 +33,12 @@ const CommunicationPage = () => { )}
-
+
{tab === "Pertanyaan Internal" && } diff --git a/app/[locale]/(protected)/shared/contest/components/contest-table.tsx b/app/[locale]/(protected)/shared/contest/components/contest-table.tsx index 735e1af5..d18cb801 100644 --- a/app/[locale]/(protected)/shared/contest/components/contest-table.tsx +++ b/app/[locale]/(protected)/shared/contest/components/contest-table.tsx @@ -123,7 +123,7 @@ const TaskTable = () => { return (
-
+
@@ -137,7 +137,7 @@ const TaskTable = () => { />
-
+
{ const [userLevelId, setUserLevelId] = useState(null); - + const t = useTranslations("Contest"); useEffect(() => { setUserLevelId(Number(getCookiesDecrypt("ulie"))); }, []); @@ -24,14 +25,14 @@ const ContestPage = () => {
- Tabel Lomba + {t("table")} {t("contest")}
{userLevelId !== 776 && userLevelId !== null && (
diff --git a/components/form/communication/internal-detail-form.tsx b/components/form/communication/internal-detail-form.tsx index 29d945e3..a418007b 100644 --- a/components/form/communication/internal-detail-form.tsx +++ b/components/form/communication/internal-detail-form.tsx @@ -193,8 +193,8 @@ export default function FormDetailInternal() {
-
-
+
+
{replyVisible && (