upd: skeleton
Deskripsi: - diskusi umum - detail diskusi umum - list pengumuman - detail pengumuman - list kegiatan - detail kegiatan No Issues
This commit is contained in:
@@ -145,7 +145,7 @@ export default function ModalSelectMultiple({ open, close, title, category, choo
|
||||
};
|
||||
|
||||
return (
|
||||
<DrawerBottom animation="slide" isVisible={open} setVisible={close} title={title} height={75}>
|
||||
<DrawerBottom animation="slide" isVisible={open} setVisible={close} title={title} height={85}>
|
||||
<ScrollView style={[Styles.mb50]}>
|
||||
{
|
||||
category == 'share-division' ?
|
||||
@@ -170,8 +170,8 @@ export default function ModalSelectMultiple({ open, close, title, category, choo
|
||||
:
|
||||
data.map((item: any, index: number) => {
|
||||
return (
|
||||
<>
|
||||
<Pressable key={index} style={[Styles.itemSelectModal]} onPress={() => { handleGroupCheck(item.id) }}>
|
||||
<View key={index}>
|
||||
<Pressable style={[Styles.itemSelectModal]} onPress={() => { handleGroupCheck(item.id) }}>
|
||||
<Text style={[Styles.textMediumSemiBold]}>{item.name}</Text>
|
||||
{
|
||||
checked[item.id] && checked[item.id].length === item.Division.length
|
||||
@@ -185,7 +185,7 @@ export default function ModalSelectMultiple({ open, close, title, category, choo
|
||||
item.Division.map((child: any, v: number) => {
|
||||
return (
|
||||
<Pressable key={v} style={[Styles.itemSelectModal]} onPress={() => { handleCheck(item.id, child.id) }}>
|
||||
<Text style={[Styles.ml10, Styles.textMediumNormal]}>{child.name}</Text>
|
||||
<Text style={[Styles.ml10, Styles.textMediumNormal, Styles.w80]} numberOfLines={1} ellipsizeMode="tail" >{child.name}</Text>
|
||||
{
|
||||
checked[item.id] && checked[item.id].includes(child.id) && <AntDesign name="check" size={20} />
|
||||
}
|
||||
@@ -193,7 +193,7 @@ export default function ModalSelectMultiple({ open, close, title, category, choo
|
||||
)
|
||||
})
|
||||
}
|
||||
</>
|
||||
</View>
|
||||
)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user