diff --git a/app/[locale]/(protected)/supervisor/communications/collaboration/components/columns.tsx b/app/[locale]/(protected)/supervisor/communications/collaboration/components/columns.tsx index 9cf8f573..b463cd23 100644 --- a/app/[locale]/(protected)/supervisor/communications/collaboration/components/columns.tsx +++ b/app/[locale]/(protected)/supervisor/communications/collaboration/components/columns.tsx @@ -15,6 +15,8 @@ import { format } from "date-fns"; import { Link, useRouter } from "@/i18n/routing"; const columns: ColumnDef[] = [ + + { accessorKey: "no", header: "Nos", @@ -62,11 +64,11 @@ const columns: ColumnDef[] = [ accessorKey: "isActive", header: "Status", cell: ({ row }) => { - const isActive = row.getValue("isActive") as boolean; // Ambil nilai isActive - const status = isActive ? "Open" : "Closed"; // Tentukan teks berdasarkan isActive + const isActive = row.getValue("isActive") as boolean; + const status = isActive ? "Open" : "Closed"; const statusStyles = isActive - ? "bg-green-100 text-green-600" // Gaya untuk "Open" - : "bg-red-100 text-red-600"; // Gaya untuk "Closed" + ? "bg-green-100 text-green-600" + : "bg-red-100 text-red-600"; return ( {status} diff --git a/app/[locale]/(protected)/supervisor/communications/collaboration/detail/[id]/component/users-card.tsx b/app/[locale]/(protected)/supervisor/communications/collaboration/detail/[id]/component/users-card.tsx index 71c92924..a577969f 100644 --- a/app/[locale]/(protected)/supervisor/communications/collaboration/detail/[id]/component/users-card.tsx +++ b/app/[locale]/(protected)/supervisor/communications/collaboration/detail/[id]/component/users-card.tsx @@ -129,7 +129,7 @@ export default function UsersCard(props: { team: any; fetchData: () => void }) { {props?.team?.length}

- setOpenSearch(!openSearch)}> + setOpenSearch(!openSearch)} className="cursor-pointer"> @@ -141,6 +141,7 @@ export default function UsersCard(props: { team: any; fetchData: () => void }) { value={selectedUsers} onChange={(selected) => setSelectedUsers(selected as UserOption[])} placeholder="Select users" + className="cursor-pointer" /> {selectedUsers?.length > 0 && ( diff --git a/app/[locale]/(public)/audio/filter/page.tsx b/app/[locale]/(public)/audio/filter/page.tsx index 6d46df2b..7a47444b 100644 --- a/app/[locale]/(public)/audio/filter/page.tsx +++ b/app/[locale]/(public)/audio/filter/page.tsx @@ -549,7 +549,7 @@ const FilterPage = () => { onChange={(update) => { setDateRange(update); }} - placeholderText={t("searchDate")} + placeholderText={t("selectDate")} onCalendarClose={() => setCalenderState(!calenderState)} />
diff --git a/app/[locale]/(public)/schedule/page.tsx b/app/[locale]/(public)/schedule/page.tsx index 09f4280d..45cfa64b 100644 --- a/app/[locale]/(public)/schedule/page.tsx +++ b/app/[locale]/(public)/schedule/page.tsx @@ -498,11 +498,11 @@ const Schedule = (props: any) => { return (

- {`${itemFound?.length} Jadwal Bersamaan`} + {t(`${itemFound?.length}simultaneousSchedule`)}

- Lihat Jadwal + {t("viewSchedule")} {itemFound?.map((list: any) => ( @@ -653,7 +653,7 @@ const Schedule = (props: any) => {
- +
-
@@ -783,7 +783,7 @@ const Schedule = (props: any) => { */} + changeNextWeek()} className="cursor-pointer" @@ -925,7 +925,7 @@ const Schedule = (props: any) => { {list?.startTime} - {list?.endTime} WIB

- + {list?.address}

{t("speaker")}

@@ -955,7 +955,7 @@ const Schedule = (props: any) => { {list?.startTime} - {list?.endTime} WIB

- + {list?.address}

{t("speaker")}

@@ -985,7 +985,7 @@ const Schedule = (props: any) => { {list?.startTime} - {list?.endTime} WIB

- + {list?.address}

{t("speaker")}

@@ -1073,7 +1073,7 @@ const Schedule = (props: any) => {

- JADWAL /{" "} + {t("timeTable1")} {detail?.isYoutube == true ? "LIVE STREAMING" : "DETAIL"}

{detail?.title}

diff --git a/components/landing-page/survey-box.tsx b/components/landing-page/survey-box.tsx index 5125490a..2d023c23 100644 --- a/components/landing-page/survey-box.tsx +++ b/components/landing-page/survey-box.tsx @@ -57,41 +57,48 @@ const UserSurveyBox = () => { }); const options = { - accessFrequency: [ - "Setiap hari", - "Beberapa kali seminggu", - "Beberapa kali dalam sebulan", - "Baru pertama kali", + accessFrequency: [t("everyDay"), t("week"), t("month"), t("firstTime")], + uiExperienceDesign: [ + t("veryGood"), + t("good"), + t("enough"), + t("notEnough"), + t("bad"), ], - uiExperienceDesign: ["Sangat baik", "Baik", "Cukup", "Kurang", "Buruk"], uiExperienceNavigation: [ - "Sangat mudah", - "Mudah", - "Cukup", - "Sulit", - "Sangat sulit", + t("veryEasy"), + t("easy"), + t("enough"), + t("difficult"), + t("veryDifficult"), ], uiExperienceSpeed: [ - "Sangat cepat", - "Cepat", - "Cukup", - "Lambat", - "Sangat lambat", + t("veryFast"), + t("fast"), + t("enough"), + t("slow"), + t("verySlow"), + ], + infoAccuracy: [ + t("verySatisfied"), + t("satisfied"), + t("enough"), + t("lessSatisfied"), + t("notSatisfied"), ], - infoAccuracy: ["Sangat puas", "Puas", "Cukup", "Kurang puas", "Tidak puas"], infoCompleteness: [ - "Sangat lengkap", - "Lengkap", - "Cukup", - "Kurang lengkap", - "Tidak lengkap", + t("veryComplete"), + t("completely"), + t("enough"), + t("incomplete"), + t("notComplete"), ], usefulness: [ - "Sangat membantu", - "Membantu", - "Cukup membantu", - "Kurang membantu", - "Tidak membantu", + t("veryHelpful"), + t("helping"), + t("quiteHelpful"), + t("lessHelpful"), + t("notHelpful"), ], }; @@ -201,17 +208,17 @@ const UserSurveyBox = () => {
{renderControllerGroup( "uiExperienceDesign", - "a) Tampilan dan desain website", + t("websiteDesign"), options.uiExperienceDesign )} {renderControllerGroup( "uiExperienceNavigation", - "b) Kemudahan navigasi", + t("easeNavigation"), options.uiExperienceNavigation )} {renderControllerGroup( "uiExperienceSpeed", - "c) Kecepatan akses website", + t("speed"), options.uiExperienceSpeed )}
@@ -222,12 +229,12 @@ const UserSurveyBox = () => {
{renderControllerGroup( "infoAccuracy", - "a) Akurat dan terpercaya", + t("accurate"), options.infoAccuracy )} {renderControllerGroup( "infoCompleteness", - "b) Kelengkapan berita dan informasi", + t("complete"), options.infoCompleteness )}
@@ -246,7 +253,7 @@ const UserSurveyBox = () => { control={control} render={({ field }) => (