upd: search page
Deskripsi: - update ui search page - update component ui borderbottom item - update style No Issues
This commit is contained in:
@@ -26,7 +26,7 @@ export default function Search() {
|
|||||||
round
|
round
|
||||||
itemLeft={<Feather name="search" size={20} color="grey" />}
|
itemLeft={<Feather name="search" size={20} color="grey" />}
|
||||||
/>
|
/>
|
||||||
<View style={[Styles.wrapPaper]}>
|
<View style={[Styles.wrapPaper, Styles.mb100]}>
|
||||||
<View style={[Styles.mb30]}>
|
<View style={[Styles.mb30]}>
|
||||||
<Text>ANGGOTA</Text>
|
<Text>ANGGOTA</Text>
|
||||||
<BorderBottomItem
|
<BorderBottomItem
|
||||||
@@ -77,12 +77,12 @@ export default function Search() {
|
|||||||
subtitle="Dinas"
|
subtitle="Dinas"
|
||||||
/>
|
/>
|
||||||
</View>
|
</View>
|
||||||
<View style={[Styles.mb30]}>
|
<View style={[Styles.mb05]}>
|
||||||
<Text>KEGIATAN</Text>
|
<Text>KEGIATAN</Text>
|
||||||
<BorderBottomItem
|
<BorderBottomItem
|
||||||
icon={
|
icon={
|
||||||
<View style={[Styles.iconContent, ColorsStatus.primary]}>
|
<View style={[Styles.iconContent, ColorsStatus.primary]}>
|
||||||
<AntDesign name="areachart" size={30} color="white" />
|
<AntDesign name="areachart" size={30} color="white" />
|
||||||
</View>
|
</View>
|
||||||
}
|
}
|
||||||
title="Kerja Bakti"
|
title="Kerja Bakti"
|
||||||
@@ -91,14 +91,22 @@ export default function Search() {
|
|||||||
<BorderBottomItem
|
<BorderBottomItem
|
||||||
icon={
|
icon={
|
||||||
<View style={[Styles.iconContent, ColorsStatus.primary]}>
|
<View style={[Styles.iconContent, ColorsStatus.primary]}>
|
||||||
<AntDesign name="areachart" size={30} color="white" />
|
<AntDesign name="areachart" size={30} color="white" />
|
||||||
|
</View>
|
||||||
|
}
|
||||||
|
title="Pasar Ramadhan"
|
||||||
|
subtitle="Dinas"
|
||||||
|
/>
|
||||||
|
<BorderBottomItem
|
||||||
|
icon={
|
||||||
|
<View style={[Styles.iconContent, ColorsStatus.primary]}>
|
||||||
|
<AntDesign name="areachart" size={30} color="white" />
|
||||||
</View>
|
</View>
|
||||||
}
|
}
|
||||||
title="Pasar Ramadhan"
|
title="Pasar Ramadhan"
|
||||||
subtitle="Dinas"
|
subtitle="Dinas"
|
||||||
/>
|
/>
|
||||||
</View>
|
</View>
|
||||||
|
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
|
|||||||
@@ -6,20 +6,23 @@ type Props = {
|
|||||||
subtitle?: string
|
subtitle?: string
|
||||||
icon: React.ReactNode
|
icon: React.ReactNode
|
||||||
desc?: string
|
desc?: string
|
||||||
|
rightTopInfo?: string
|
||||||
onPress?: () => void
|
onPress?: () => void
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function BorderBottomItem({ title, subtitle, icon, desc, onPress }: Props) {
|
export default function BorderBottomItem({ title, subtitle, icon, desc, onPress, rightTopInfo }: Props) {
|
||||||
return (
|
return (
|
||||||
<Pressable style={[Styles.wrapItemBorderBottom]} onPress={onPress}>
|
<Pressable style={[Styles.wrapItemBorderBottom]} onPress={onPress}>
|
||||||
<View style={[Styles.rowItemsCenter]}>
|
<View style={[Styles.rowItemsCenter]}>
|
||||||
{icon}
|
{icon}
|
||||||
<View style={[Styles.rowSpaceBetween]}>
|
<View style={[Styles.rowSpaceBetween, { width: '85%' }]}>
|
||||||
<View style={[Styles.ml10]}>
|
<View style={[Styles.ml10]}>
|
||||||
<Text style={[Styles.textDefaultSemiBold]}>{title}</Text>
|
<Text style={[Styles.textDefaultSemiBold]}>{title}</Text>
|
||||||
<Text style={[Styles.textMediumNormal]}>{subtitle}</Text>
|
<Text style={[Styles.textMediumNormal]}>{subtitle}</Text>
|
||||||
</View>
|
</View>
|
||||||
<Text style={[Styles.textInformation]}>3 Feb 2025</Text>
|
{
|
||||||
|
rightTopInfo && <Text style={[Styles.textInformation]}>{rightTopInfo}</Text>
|
||||||
|
}
|
||||||
</View>
|
</View>
|
||||||
|
|
||||||
</View>
|
</View>
|
||||||
|
|||||||
@@ -68,6 +68,9 @@ const Styles = StyleSheet.create({
|
|||||||
mb30: {
|
mb30: {
|
||||||
marginBottom: 30
|
marginBottom: 30
|
||||||
},
|
},
|
||||||
|
mb100:{
|
||||||
|
marginBottom: 100
|
||||||
|
},
|
||||||
mv05: {
|
mv05: {
|
||||||
marginVertical: 5
|
marginVertical: 5
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user