upd: text input komentar
Deskripsi: - android input komentar pada android No Issues
This commit is contained in:
@@ -223,7 +223,11 @@ export default function DetailDiscussionGeneral() {
|
|||||||
<Pressable onPress={() => {
|
<Pressable onPress={() => {
|
||||||
(komentar != '' && data?.status === 1 && data?.isActive && (memberDiscussion || (entityUser.role != "user" && entityUser.role != "coadmin")))
|
(komentar != '' && data?.status === 1 && data?.isActive && (memberDiscussion || (entityUser.role != "user" && entityUser.role != "coadmin")))
|
||||||
&& handleKomentar()
|
&& handleKomentar()
|
||||||
}}>
|
}}
|
||||||
|
style={[
|
||||||
|
Platform.OS == 'android' && Styles.mb15,
|
||||||
|
]}
|
||||||
|
>
|
||||||
<MaterialIcons name="send" size={25} style={(komentar == '' || data?.status === 2 || !data?.isActive || (!memberDiscussion && (entityUser.role == "user" || entityUser.role == "coadmin"))) ? Styles.cGray : Styles.cDefault} />
|
<MaterialIcons name="send" size={25} style={(komentar == '' || data?.status === 2 || !data?.isActive || (!memberDiscussion && (entityUser.role == "user" || entityUser.role == "coadmin"))) ? Styles.cGray : Styles.cDefault} />
|
||||||
</Pressable>
|
</Pressable>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -324,12 +324,15 @@ export default function DiscussionDetail() {
|
|||||||
entityUser.role == "cosupadmin") &&
|
entityUser.role == "cosupadmin") &&
|
||||||
handleKomentar();
|
handleKomentar();
|
||||||
}}
|
}}
|
||||||
|
style={[
|
||||||
|
Platform.OS == 'android' && Styles.mb15,
|
||||||
|
]}
|
||||||
>
|
>
|
||||||
<MaterialIcons
|
<MaterialIcons
|
||||||
name="send"
|
name="send"
|
||||||
size={25}
|
size={25}
|
||||||
style={
|
style={
|
||||||
komentar == "" ||
|
[komentar == "" ||
|
||||||
loadingSend ||
|
loadingSend ||
|
||||||
data?.status == 2 ||
|
data?.status == 2 ||
|
||||||
data?.isActive == false ||
|
data?.isActive == false ||
|
||||||
@@ -337,7 +340,8 @@ export default function DiscussionDetail() {
|
|||||||
entityUser.role == "coadmin") &&
|
entityUser.role == "coadmin") &&
|
||||||
!isMemberDivision)
|
!isMemberDivision)
|
||||||
? Styles.cGray
|
? Styles.cGray
|
||||||
: Styles.cDefault
|
: Styles.cDefault,
|
||||||
|
]
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
</Pressable>
|
</Pressable>
|
||||||
|
|||||||
@@ -44,8 +44,11 @@ export function InputForm({ label, value, placeholder, onChange, info, disable,
|
|||||||
round && Styles.round30,
|
round && Styles.round30,
|
||||||
{ backgroundColor: bg && bg == 'white' ? 'white' : 'transparent' },
|
{ backgroundColor: bg && bg == 'white' ? 'white' : 'transparent' },
|
||||||
error && { borderColor: "red" },
|
error && { borderColor: "red" },
|
||||||
Platform.OS == 'ios' ? { paddingVertical: 10 } : { paddingVertical: 0, height: 40 },
|
Platform.OS == 'ios' ? { paddingVertical: 10 } : { paddingVertical: 0, minHeight: 40 },
|
||||||
{ alignItems: 'center' }
|
{ alignItems: 'center' },
|
||||||
|
multiline
|
||||||
|
? { alignItems: "flex-end" } // multiline: tombol send di bawah
|
||||||
|
: { alignItems: "center" }, // default: tetap di tengah
|
||||||
]}>
|
]}>
|
||||||
{itemRight != undefined ? itemRight : itemLeft}
|
{itemRight != undefined ? itemRight : itemLeft}
|
||||||
<TextInput
|
<TextInput
|
||||||
|
|||||||
Reference in New Issue
Block a user