Deskripsi: - ui page group - ui tab button - ui list data group - ui modal bottom drawer - ui menu item row - ui tambah data No Issues
85 lines
3.7 KiB
TypeScript
85 lines
3.7 KiB
TypeScript
import BorderBottomItem from "@/components/borderBottomItem";
|
|
import ButtonTab from "@/components/buttonTab";
|
|
import InputSearch from "@/components/inputSearch";
|
|
import { ColorsStatus } from "@/constants/ColorsStatus";
|
|
import Styles from "@/constants/Styles";
|
|
import { AntDesign, Feather, MaterialCommunityIcons } from "@expo/vector-icons";
|
|
import { router, useLocalSearchParams } from "expo-router";
|
|
import { SafeAreaView, ScrollView, View } from "react-native";
|
|
|
|
export default function Index() {
|
|
const { active } = useLocalSearchParams<{ active?: string }>();
|
|
|
|
return (
|
|
<SafeAreaView>
|
|
<ScrollView>
|
|
<View style={[Styles.p15]}>
|
|
<View style={{ justifyContent: 'space-between', flexDirection: 'row', marginBottom: 15, backgroundColor: 'white', borderRadius: 20, padding: 5 }}>
|
|
<ButtonTab
|
|
active={active == "false" ? "false" : "true"}
|
|
value="true"
|
|
onPress={() => { router.push('/group?active=true') }}
|
|
label="Aktif"
|
|
icon={<Feather name="check-circle" color={active == "true" ? 'white' : 'black'} size={20} />}
|
|
n={2} />
|
|
<ButtonTab
|
|
active={active == "false" ? "false" : "true"}
|
|
value="false"
|
|
onPress={() => { router.push('/group?active=false') }}
|
|
label="Tidak Aktif"
|
|
icon={<AntDesign name="closecircleo" color={active == "false" ? 'white' : 'black'} size={20} />}
|
|
n={2} />
|
|
</View>
|
|
<InputSearch />
|
|
<View>
|
|
<BorderBottomItem
|
|
borderType="all"
|
|
icon={
|
|
<View style={[Styles.iconContent, ColorsStatus.lightGreen]}>
|
|
<MaterialCommunityIcons name="office-building-outline" size={25} color={'#384288'} />
|
|
</View>
|
|
}
|
|
title="Adat"
|
|
/>
|
|
<BorderBottomItem
|
|
borderType="all"
|
|
icon={
|
|
<View style={[Styles.iconContent, ColorsStatus.lightGreen]}>
|
|
<MaterialCommunityIcons name="office-building-outline" size={25} color={'#384288'} />
|
|
</View>
|
|
}
|
|
title="Dinas"
|
|
/>
|
|
<BorderBottomItem
|
|
borderType="all"
|
|
icon={
|
|
<View style={[Styles.iconContent, ColorsStatus.lightGreen]}>
|
|
<MaterialCommunityIcons name="office-building-outline" size={25} color={'#384288'} />
|
|
</View>
|
|
}
|
|
title="PKK"
|
|
/>
|
|
<BorderBottomItem
|
|
borderType="all"
|
|
icon={
|
|
<View style={[Styles.iconContent, ColorsStatus.lightGreen]}>
|
|
<MaterialCommunityIcons name="office-building-outline" size={25} color={'#384288'} />
|
|
</View>
|
|
}
|
|
title="Karang Taruna"
|
|
/>
|
|
<BorderBottomItem
|
|
borderType="all"
|
|
icon={
|
|
<View style={[Styles.iconContent, ColorsStatus.lightGreen]}>
|
|
<MaterialCommunityIcons name="office-building-outline" size={25} color={'#384288'} />
|
|
</View>
|
|
}
|
|
title="Koperasi"
|
|
/>
|
|
</View>
|
|
</View>
|
|
</ScrollView>
|
|
</SafeAreaView>
|
|
)
|
|
} |