Compare commits

...

10 Commits

Author SHA1 Message Date
7442d01551 upd: text error login 2025-09-22 17:43:07 +08:00
180fbeede9 fix: project
Deskripsi:
- fix fungsi tambah project saat user role selain developer dan supadmin

No Issues
2025-09-22 17:33:24 +08:00
d0d40cb1a7 fix : tampilan
Deskripsi:
- update tampilan diskusi item > judul melebihi container

No Issues
2025-09-22 17:22:32 +08:00
8a25c2f672 Merge pull request 'amalia/12-sept-25' (#38) from amalia/12-sept-25 into join
Reviewed-on: bip/mobile-darmasaba#38
2025-09-12 18:23:44 +08:00
d31c3677c9 upd: icon gambar 2025-09-12 16:35:56 +08:00
d3e7ef9623 Merge pull request 'amalia/09-sept-25' (#37) from amalia/09-sept-25 into join
Reviewed-on: bip/mobile-darmasaba#37
2025-09-09 17:26:53 +08:00
89bf659598 Merge pull request 'upd: kode verification' (#36) from amalia/04-sept-25 into join
Reviewed-on: bip/mobile-darmasaba#36
2025-09-04 18:39:14 +08:00
c435eb1503 Merge pull request 'amalia/04-sept-25' (#35) from amalia/04-sept-25 into join
Reviewed-on: bip/mobile-darmasaba#35
2025-09-04 18:19:35 +08:00
75c95b5c92 Merge pull request 'amalia/03-sept-25' (#34) from amalia/03-sept-25 into join
Reviewed-on: bip/mobile-darmasaba#34
2025-09-03 17:37:36 +08:00
bc590b8cb5 Merge pull request 'amalia/01-sept-25' (#33) from amalia/01-sept-25 into join
Reviewed-on: bip/mobile-darmasaba#33
2025-09-01 17:30:53 +08:00
4 changed files with 13 additions and 3 deletions

View File

@@ -42,6 +42,7 @@ export default function CreateProject() {
const taskCreate = useSelector((state: any) => state.taskCreate);
const update = useSelector((state: any) => state.projectUpdate)
const entityUser = useSelector((state: any) => state.user);
const userLogin = useSelector((state: any) => state.entities)
const [fileForm, setFileForm] = useState<any[]>([])
const [indexDelFile, setIndexDelFile] = useState<number>(0)
const [disableBtn, setDisableBtn] = useState(true)
@@ -86,7 +87,7 @@ export default function CreateProject() {
} else {
setError(error => ({ ...error, title: false }))
}
} else if (cat == "task" && hitung > 1) {
} else if (cat == "task" && hitung > 2) {
if (taskCreate.length == 0) {
setError(error => ({ ...error, task: true }))
} else {
@@ -114,6 +115,13 @@ export default function CreateProject() {
validationForm('task', '');
}, [taskCreate]);
useEffect(() => {
if (entityUser.role != "supadmin" && entityUser.role != "developer") {
validationForm('group', userLogin.idGroup, userLogin.group);
}
}, []);
async function handleCreate() {
try {
setLoading(true)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 27 KiB

View File

@@ -42,7 +42,7 @@ export default function ViewLogin({ onValidate }: Props) {
return Toast.show({ type: 'small', text1: response.message, position: 'top' })
}
} catch (error) {
return Toast.show({ type: 'small', text1: 'Terjadi kesalahan', position: 'top' })
return Toast.show({ type: 'small', text1: `Terjadi kesalahan, coba lagi`, position: 'top' })
} finally {
setLoadingLogin(false)
}

View File

@@ -15,7 +15,9 @@ export default function DiscussionItem({ title, user, date, onPress }: Props) {
<Pressable style={[Styles.wrapItemDiscussion]} onPress={onPress}>
<View style={[Styles.rowItemsCenter, Styles.mb10]}>
<Ionicons name="chatbox-ellipses-outline" size={22} color="black" style={Styles.mr10} />
<Text style={{ fontWeight: 'bold' }} numberOfLines={1} ellipsizeMode="tail">{title}</Text>
<View style={[{flex:1}]}>
<Text style={{ fontWeight: 'bold' }} numberOfLines={1} ellipsizeMode="tail">{title}</Text>
</View>
</View>
<View style={Styles.rowSpaceBetween}>
<View style={Styles.rowItemsCenter}>