diff --git a/app/(application)/division/[id]/(fitur-division)/task/[detail]/add-task.tsx b/app/(application)/division/[id]/(fitur-division)/task/[detail]/add-task.tsx
index 1fb4964..54d981c 100644
--- a/app/(application)/division/[id]/(fitur-division)/task/[detail]/add-task.tsx
+++ b/app/(application)/division/[id]/(fitur-division)/task/[detail]/add-task.tsx
@@ -206,6 +206,8 @@ export default function TaskDivisionAddTask() {
day_label: { color: colors.text },
time_label: { color: colors.text },
weekday_label: { color: colors.text },
+ button_next_image: { tintColor: colors.text },
+ button_prev_image: { tintColor: colors.text },
}}
/>
@@ -238,7 +240,7 @@ export default function TaskDivisionAddTask() {
>
Detail
*/}
- { setModalDetail(true) }} />
+ { setModalDetail(true) }} disabled={from == "" || to == ""} />
@@ -209,7 +211,7 @@ export default function CreateTaskAddTugas() {
>
Detail
*/}
- { setModalDetail(true) }} />
+ { setModalDetail(true) }} disabled={from == "" || to == ""} />
)}
@@ -290,7 +292,7 @@ export default function UpdateProjectTaskDivision() {
>
Detail
*/}
- { setModalDetail(true) }} />
+ { setModalDetail(true) }} disabled={from == "" || to == ""} />
@@ -227,7 +229,7 @@ export default function ProjectAddTask() {
>
Detail
*/}
- { setModalDetail(true) }} />
+ { setModalDetail(true) }} disabled={from == "" || to == ""} />
@@ -204,14 +206,7 @@ export default function CreateProjectAddTask() {
{
(error.endDate || error.startDate) && Tanggal tidak boleh kosong
}
- {/* { setModalDetail(true) }}
- >
- Detail
- */}
- { setModalDetail(true) }} />
+ { setModalDetail(true) }} disabled={from == "" || to == ""} />
}
@@ -259,7 +261,7 @@ export default function UpdateProjectTask() {
>
Detail
*/}
- { setModalDetail(true) }} />
+ { setModalDetail(true) }} disabled={from == "" || to == ""} />
-
+
{value}
diff --git a/components/inputForm.tsx b/components/inputForm.tsx
index b09c980..c0bc45b 100644
--- a/components/inputForm.tsx
+++ b/components/inputForm.tsx
@@ -30,6 +30,10 @@ export function InputForm({ label, value, placeholder, onChange, info, disable,
const { colors } = useTheme();
if (itemLeft != undefined || itemRight != undefined) {
+ const hasBothItems = itemLeft != undefined && itemRight != undefined;
+ const baseInputWidth = width ? lebar * width / 100 : lebar * 0.78;
+ // When both icons present, shrink TextInput by right icon size to keep container width stable
+ const textInputWidth = hasBothItems ? baseInputWidth - 30 : baseInputWidth;
return (
{
@@ -42,7 +46,7 @@ export function InputForm({ label, value, placeholder, onChange, info, disable,
}
- {itemRight != undefined ? itemRight : itemLeft}
+ {hasBothItems ? itemLeft : (itemRight != undefined ? itemRight : itemLeft)}
+ {hasBothItems && itemRight}
{error && ({errorText})}
{info != undefined && ({info})}