upd: ui jabatan
Deskripsi: - ui list jabatan - ui filter modal - ui tambah jabatan - ui select option - ui modal select option - ui edit jabatan No Issues
This commit is contained in:
@@ -12,6 +12,7 @@ export default function RootLayout() {
|
|||||||
<Stack.Screen name="notification" options={{ title: 'Notifikasi' }} />
|
<Stack.Screen name="notification" options={{ title: 'Notifikasi' }} />
|
||||||
<Stack.Screen name="profile" options={{ title: 'Profile' }} />
|
<Stack.Screen name="profile" options={{ title: 'Profile' }} />
|
||||||
<Stack.Screen name="group" options={{ title: 'Lembaga Desa', headerShown: false }} />
|
<Stack.Screen name="group" options={{ title: 'Lembaga Desa', headerShown: false }} />
|
||||||
|
<Stack.Screen name="position" options={{ title: 'Jabatan', headerShown: false }} />
|
||||||
</Stack>
|
</Stack>
|
||||||
<StatusBar style="light" />
|
<StatusBar style="light" />
|
||||||
</>
|
</>
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ export default function Feature() {
|
|||||||
</View>
|
</View>
|
||||||
<View style={[Styles.rowSpaceBetween, Styles.mb15]}>
|
<View style={[Styles.rowSpaceBetween, Styles.mb15]}>
|
||||||
<ButtonFiturMenu icon={<MaterialIcons name="groups" size={35} color="black" />} text="Anggota" />
|
<ButtonFiturMenu icon={<MaterialIcons name="groups" size={35} color="black" />} text="Anggota" />
|
||||||
<ButtonFiturMenu icon={<MaterialCommunityIcons name="account-tie" size={35} color="black" />} text="Jabatan" />
|
<ButtonFiturMenu icon={<MaterialCommunityIcons name="account-tie" size={35} color="black" />} text="Jabatan" onPress={() => { router.push('/position?active=true') }}/>
|
||||||
<ButtonFiturMenu icon={<AntDesign name="tags" size={35} color="black" />} text="Lembaga Desa" onPress={() => { router.push('/group?active=true') }} />
|
<ButtonFiturMenu icon={<AntDesign name="tags" size={35} color="black" />} text="Lembaga Desa" onPress={() => { router.push('/group?active=true') }} />
|
||||||
<ButtonFiturMenu icon={<Ionicons name="color-palette-sharp" size={35} color="black" />} text="Tema" onPress={() => { }} />
|
<ButtonFiturMenu icon={<Ionicons name="color-palette-sharp" size={35} color="black" />} text="Tema" onPress={() => { }} />
|
||||||
</View>
|
</View>
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ export default function Index() {
|
|||||||
<SafeAreaView>
|
<SafeAreaView>
|
||||||
<ScrollView>
|
<ScrollView>
|
||||||
<View style={[Styles.p15]}>
|
<View style={[Styles.p15]}>
|
||||||
<View style={{ justifyContent: 'space-between', flexDirection: 'row', marginBottom: 15, backgroundColor: 'white', borderRadius: 20, padding: 5 }}>
|
<View style={[Styles.wrapBtnTab]}>
|
||||||
<ButtonTab
|
<ButtonTab
|
||||||
active={active == "false" ? "false" : "true"}
|
active={active == "false" ? "false" : "true"}
|
||||||
value="true"
|
value="true"
|
||||||
|
|||||||
86
app/(application)/position/_layout.tsx
Normal file
86
app/(application)/position/_layout.tsx
Normal file
@@ -0,0 +1,86 @@
|
|||||||
|
import ButtonBackHeader from "@/components/buttonBackHeader"
|
||||||
|
import { ButtonForm } from "@/components/buttonForm"
|
||||||
|
import ButtonMenuHeader from "@/components/buttonMenuHeader"
|
||||||
|
import DrawerBottom from "@/components/drawerBottom"
|
||||||
|
import { InputForm } from "@/components/inputForm"
|
||||||
|
import MenuItemRow from "@/components/menuItemRow"
|
||||||
|
import ModalFilter from "@/components/modalFilter"
|
||||||
|
import ModalSelect from "@/components/modalSelect"
|
||||||
|
import SelectForm from "@/components/selectForm"
|
||||||
|
import { Headers } from "@/constants/Headers"
|
||||||
|
import Styles from "@/constants/Styles"
|
||||||
|
import { AntDesign } from "@expo/vector-icons"
|
||||||
|
import { router, Stack } from "expo-router"
|
||||||
|
import { useState } from "react"
|
||||||
|
import { ToastAndroid, View } from "react-native"
|
||||||
|
|
||||||
|
export default function RootLayout() {
|
||||||
|
const [isVisible, setVisible] = useState(false)
|
||||||
|
const [isVisibleTambah, setVisibleTambah] = useState(false)
|
||||||
|
const [isFilter, setFilter] = useState(false)
|
||||||
|
const [isSelect, setSelect] = useState(false)
|
||||||
|
const [choose, setChoose] = useState({ val: '', label: '' })
|
||||||
|
|
||||||
|
function handleTambah() {
|
||||||
|
setVisibleTambah(false)
|
||||||
|
setVisible(false)
|
||||||
|
ToastAndroid.show('Berhasil menambahkan data', ToastAndroid.SHORT)
|
||||||
|
}
|
||||||
|
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<Stack screenOptions={Headers.shadow}>
|
||||||
|
<Stack.Screen name="index" options={{
|
||||||
|
headerLeft: () => <ButtonBackHeader onPress={() => { router.back() }} />,
|
||||||
|
headerTitle: 'Jabatan',
|
||||||
|
headerTitleAlign: 'center',
|
||||||
|
headerRight: () => <ButtonMenuHeader onPress={() => { setVisible(true) }} />
|
||||||
|
}} />
|
||||||
|
</Stack>
|
||||||
|
|
||||||
|
<DrawerBottom animation="slide" isVisible={isVisible} setVisible={setVisible} title="Menu">
|
||||||
|
<View style={Styles.rowItemsCenter}>
|
||||||
|
<MenuItemRow
|
||||||
|
icon={<AntDesign name="pluscircle" color="black" size={25} />}
|
||||||
|
title="Tambah Jabatan"
|
||||||
|
onPress={() => { setVisibleTambah(true) }}
|
||||||
|
/>
|
||||||
|
<MenuItemRow
|
||||||
|
icon={<AntDesign name="filter" color="black" size={25} />}
|
||||||
|
title="Filter"
|
||||||
|
onPress={() => { setFilter(true) }}
|
||||||
|
/>
|
||||||
|
</View>
|
||||||
|
</DrawerBottom>
|
||||||
|
|
||||||
|
<DrawerBottom animation="none" isVisible={isVisibleTambah} setVisible={setVisibleTambah} title="Tambah Lembaga Desa">
|
||||||
|
<View style={{ justifyContent: 'space-between', flex: 1 }}>
|
||||||
|
<View>
|
||||||
|
<SelectForm label="Lembaga Desa" placeholder="Pilih Lembaga Desa" value={choose.label} required onPress={() => { setSelect(true) }} />
|
||||||
|
<InputForm type="default" placeholder="Nama Jabatan" required label="Jabatan" />
|
||||||
|
</View>
|
||||||
|
<View>
|
||||||
|
<ButtonForm text="SIMPAN" onPress={() => { handleTambah() }} />
|
||||||
|
</View>
|
||||||
|
</View>
|
||||||
|
</DrawerBottom>
|
||||||
|
|
||||||
|
<ModalFilter close={() => {
|
||||||
|
setFilter(false)
|
||||||
|
setVisible(false)
|
||||||
|
}} open={isFilter} page="position" />
|
||||||
|
|
||||||
|
<ModalSelect
|
||||||
|
category="group"
|
||||||
|
close={setSelect}
|
||||||
|
onSelect={(value) => {
|
||||||
|
setChoose(value)
|
||||||
|
setSelect(false)
|
||||||
|
}}
|
||||||
|
title="Lembaga Desa"
|
||||||
|
choose={choose.val}
|
||||||
|
open={isSelect}
|
||||||
|
/>
|
||||||
|
</>
|
||||||
|
)
|
||||||
|
}
|
||||||
157
app/(application)/position/index.tsx
Normal file
157
app/(application)/position/index.tsx
Normal file
@@ -0,0 +1,157 @@
|
|||||||
|
import AlertKonfirmasi from "@/components/alertKonfirmasi";
|
||||||
|
import BorderBottomItem from "@/components/borderBottomItem";
|
||||||
|
import { ButtonForm } from "@/components/buttonForm";
|
||||||
|
import ButtonTab from "@/components/buttonTab";
|
||||||
|
import DrawerBottom from "@/components/drawerBottom";
|
||||||
|
import { InputForm } from "@/components/inputForm";
|
||||||
|
import InputSearch from "@/components/inputSearch";
|
||||||
|
import MenuItemRow from "@/components/menuItemRow";
|
||||||
|
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 { useState } from "react";
|
||||||
|
import { SafeAreaView, ScrollView, Text, ToastAndroid, View } from "react-native";
|
||||||
|
|
||||||
|
export default function Index() {
|
||||||
|
const { active } = useLocalSearchParams<{ active?: string }>()
|
||||||
|
const [isModal, setModal] = useState(false)
|
||||||
|
const [isVisibleEdit, setVisibleEdit] = useState(false)
|
||||||
|
|
||||||
|
function handleEdit() {
|
||||||
|
setVisibleEdit(false)
|
||||||
|
setModal(false)
|
||||||
|
ToastAndroid.show('Berhasil mengupdate data', ToastAndroid.SHORT)
|
||||||
|
}
|
||||||
|
|
||||||
|
return (
|
||||||
|
<SafeAreaView>
|
||||||
|
<ScrollView>
|
||||||
|
<View style={[Styles.p15]}>
|
||||||
|
<View style={[Styles.wrapBtnTab]}>
|
||||||
|
<ButtonTab
|
||||||
|
active={active == "false" ? "false" : "true"}
|
||||||
|
value="true"
|
||||||
|
onPress={() => { router.push('/position?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('/position?active=false') }}
|
||||||
|
label="Tidak Aktif"
|
||||||
|
icon={<AntDesign name="closecircleo" color={active == "false" ? 'white' : 'black'} size={20} />}
|
||||||
|
n={2} />
|
||||||
|
</View>
|
||||||
|
<InputSearch />
|
||||||
|
<View style={[Styles.mv05]}>
|
||||||
|
<Text>Filter : Dinas</Text>
|
||||||
|
</View>
|
||||||
|
<View>
|
||||||
|
<BorderBottomItem
|
||||||
|
onPress={() => { setModal(true) }}
|
||||||
|
borderType="all"
|
||||||
|
icon={
|
||||||
|
<View style={[Styles.iconContent, ColorsStatus.lightGreen]}>
|
||||||
|
<MaterialCommunityIcons name="account-tie" size={25} color={'#384288'} />
|
||||||
|
</View>
|
||||||
|
}
|
||||||
|
title="Anggota"
|
||||||
|
subtitle="Dinas"
|
||||||
|
/>
|
||||||
|
<BorderBottomItem
|
||||||
|
onPress={() => { setModal(true) }}
|
||||||
|
borderType="all"
|
||||||
|
icon={
|
||||||
|
<View style={[Styles.iconContent, ColorsStatus.lightGreen]}>
|
||||||
|
<MaterialCommunityIcons name="account-tie" size={25} color={'#384288'} />
|
||||||
|
</View>
|
||||||
|
}
|
||||||
|
title="Bendahara"
|
||||||
|
subtitle="Dinas"
|
||||||
|
/>
|
||||||
|
<BorderBottomItem
|
||||||
|
onPress={() => { setModal(true) }}
|
||||||
|
borderType="all"
|
||||||
|
icon={
|
||||||
|
<View style={[Styles.iconContent, ColorsStatus.lightGreen]}>
|
||||||
|
<MaterialCommunityIcons name="account-tie" size={25} color={'#384288'} />
|
||||||
|
</View>
|
||||||
|
}
|
||||||
|
title="Ketua"
|
||||||
|
subtitle="Dinas"
|
||||||
|
/>
|
||||||
|
<BorderBottomItem
|
||||||
|
onPress={() => { setModal(true) }}
|
||||||
|
borderType="all"
|
||||||
|
icon={
|
||||||
|
<View style={[Styles.iconContent, ColorsStatus.lightGreen]}>
|
||||||
|
<MaterialCommunityIcons name="account-tie" size={25} color={'#384288'} />
|
||||||
|
</View>
|
||||||
|
}
|
||||||
|
title="Sekretaris"
|
||||||
|
subtitle="Dinas"
|
||||||
|
/>
|
||||||
|
<BorderBottomItem
|
||||||
|
onPress={() => { setModal(true) }}
|
||||||
|
borderType="all"
|
||||||
|
icon={
|
||||||
|
<View style={[Styles.iconContent, ColorsStatus.lightGreen]}>
|
||||||
|
<MaterialCommunityIcons name="account-tie" size={25} color={'#384288'} />
|
||||||
|
</View>
|
||||||
|
}
|
||||||
|
title="Kepala TU"
|
||||||
|
subtitle="Dinas"
|
||||||
|
/>
|
||||||
|
<BorderBottomItem
|
||||||
|
onPress={() => { setModal(true) }}
|
||||||
|
borderType="all"
|
||||||
|
icon={
|
||||||
|
<View style={[Styles.iconContent, ColorsStatus.lightGreen]}>
|
||||||
|
<MaterialCommunityIcons name="account-tie" size={25} color={'#384288'} />
|
||||||
|
</View>
|
||||||
|
}
|
||||||
|
title="Wakil Kepala TU"
|
||||||
|
subtitle="Dinas"
|
||||||
|
/>
|
||||||
|
</View>
|
||||||
|
</View>
|
||||||
|
</ScrollView>
|
||||||
|
|
||||||
|
<DrawerBottom animation="slide" isVisible={isModal} setVisible={setModal} title="Menu">
|
||||||
|
<View style={Styles.rowItemsCenter}>
|
||||||
|
<MenuItemRow
|
||||||
|
icon={<MaterialCommunityIcons name="toggle-switch-off-outline" color="black" size={25} />}
|
||||||
|
title="Non Aktifkan"
|
||||||
|
onPress={() => {
|
||||||
|
AlertKonfirmasi({
|
||||||
|
title: 'Konfirmasi',
|
||||||
|
desc: 'Apakah anda yakin ingin menonaktifkan data?',
|
||||||
|
onPress: () => { handleEdit() }
|
||||||
|
})
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
<MenuItemRow
|
||||||
|
icon={<MaterialCommunityIcons name="pencil-outline" color="black" size={25} />}
|
||||||
|
title="Edit"
|
||||||
|
onPress={() => { setVisibleEdit(true) }}
|
||||||
|
/>
|
||||||
|
</View>
|
||||||
|
</DrawerBottom>
|
||||||
|
|
||||||
|
|
||||||
|
<DrawerBottom animation="none" isVisible={isVisibleEdit} setVisible={setVisibleEdit} title="Edit Jabatan">
|
||||||
|
<View style={{ justifyContent: 'space-between', flex: 1 }}>
|
||||||
|
<View>
|
||||||
|
<InputForm type="default" placeholder="Nama Jabatan" required label="Jabatan" />
|
||||||
|
</View>
|
||||||
|
<View>
|
||||||
|
<ButtonForm text="SIMPAN" onPress={() => { handleEdit() }} />
|
||||||
|
</View>
|
||||||
|
</View>
|
||||||
|
</DrawerBottom>
|
||||||
|
|
||||||
|
</SafeAreaView>
|
||||||
|
)
|
||||||
|
}
|
||||||
@@ -19,7 +19,7 @@ export default function BorderBottomItem({ title, subtitle, icon, desc, onPress,
|
|||||||
<View style={[Styles.rowSpaceBetween, { width: '85%' }]}>
|
<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>
|
||||||
{subtitle && <Text style={[Styles.textMediumNormal]}>{subtitle}</Text>}
|
{subtitle && <Text style={[Styles.textMediumNormal, {lineHeight:15}]}>{subtitle}</Text>}
|
||||||
</View>
|
</View>
|
||||||
{
|
{
|
||||||
rightTopInfo && <Text style={[Styles.textInformation]}>{rightTopInfo}</Text>
|
rightTopInfo && <Text style={[Styles.textInformation]}>{rightTopInfo}</Text>
|
||||||
|
|||||||
@@ -8,13 +8,14 @@ type Props = {
|
|||||||
title?: string
|
title?: string
|
||||||
children: React.ReactNode
|
children: React.ReactNode
|
||||||
animation: 'slide' | 'none' | 'fade'
|
animation: 'slide' | 'none' | 'fade'
|
||||||
|
height?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function DrawerBottom({ isVisible, setVisible, title, children, animation }: Props) {
|
export default function DrawerBottom({ isVisible, setVisible, title, children, animation, height }: Props) {
|
||||||
return (
|
return (
|
||||||
<Modal animationType={animation} transparent={true} visible={isVisible}>
|
<Modal animationType={animation} transparent={true} visible={isVisible}>
|
||||||
<View style={[Styles.modalBgTransparant]}>
|
<View style={[Styles.modalBgTransparant]}>
|
||||||
<View style={Styles.modalContent}>
|
<View style={[Styles.modalContent, height != undefined && { height: `${height}%` }]}>
|
||||||
<View style={Styles.titleContainer}>
|
<View style={Styles.titleContainer}>
|
||||||
<Text style={Styles.textDefault}>{title}</Text>
|
<Text style={Styles.textDefault}>{title}</Text>
|
||||||
<Pressable onPress={() => setVisible(false)}>
|
<Pressable onPress={() => setVisible(false)}>
|
||||||
|
|||||||
43
components/modalFilter.tsx
Normal file
43
components/modalFilter.tsx
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
import { Pressable, Text, View } from "react-native"
|
||||||
|
import DrawerBottom from "./drawerBottom"
|
||||||
|
import { AntDesign } from "@expo/vector-icons"
|
||||||
|
import Styles from "@/constants/Styles"
|
||||||
|
import { ButtonForm } from "./buttonForm"
|
||||||
|
import { router } from "expo-router"
|
||||||
|
|
||||||
|
|
||||||
|
type Props = {
|
||||||
|
open: boolean,
|
||||||
|
close: (value: boolean) => void
|
||||||
|
page: 'position'
|
||||||
|
}
|
||||||
|
|
||||||
|
export default function ModalFilter({ open, close, page }: Props) {
|
||||||
|
return (
|
||||||
|
<DrawerBottom animation="slide" isVisible={open} setVisible={close} title="Filter" height={75}>
|
||||||
|
<View style={{ justifyContent: 'space-between', flex: 1 }}>
|
||||||
|
<View>
|
||||||
|
<Pressable style={[Styles.itemSelectModal]}>
|
||||||
|
<Text style={[Styles.textDefaultSemiBold]}>Dinas</Text>
|
||||||
|
<AntDesign name="check" size={20} />
|
||||||
|
</Pressable>
|
||||||
|
<Pressable style={[Styles.itemSelectModal]}>
|
||||||
|
<Text>Adat</Text>
|
||||||
|
</Pressable>
|
||||||
|
<Pressable style={[Styles.itemSelectModal]}>
|
||||||
|
<Text>Karang Taruna</Text>
|
||||||
|
</Pressable>
|
||||||
|
<Pressable style={[Styles.itemSelectModal]}>
|
||||||
|
<Text>PKK</Text>
|
||||||
|
</Pressable>
|
||||||
|
</View>
|
||||||
|
<View>
|
||||||
|
<ButtonForm text="Terapkan" onPress={() => {
|
||||||
|
close(false)
|
||||||
|
router.push(`/${page}?active=true`)
|
||||||
|
}} />
|
||||||
|
</View>
|
||||||
|
</View>
|
||||||
|
</DrawerBottom>
|
||||||
|
)
|
||||||
|
}
|
||||||
42
components/modalSelect.tsx
Normal file
42
components/modalSelect.tsx
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
import { Pressable, Text, View } from "react-native"
|
||||||
|
import DrawerBottom from "./drawerBottom"
|
||||||
|
import Styles from "@/constants/Styles"
|
||||||
|
import { AntDesign } from "@expo/vector-icons"
|
||||||
|
import { useState } from "react"
|
||||||
|
|
||||||
|
type Props = {
|
||||||
|
open: boolean
|
||||||
|
close: (value: boolean) => void
|
||||||
|
title: string
|
||||||
|
category: 'group'
|
||||||
|
choose: string
|
||||||
|
onSelect: (value: { val: string, label: string }) => void
|
||||||
|
}
|
||||||
|
|
||||||
|
export default function ModalSelect({ open, close, title, category, choose, onSelect }: Props) {
|
||||||
|
const [isChoose, setChoose] = useState(choose)
|
||||||
|
|
||||||
|
return (
|
||||||
|
<DrawerBottom animation="none" isVisible={open} setVisible={close} title={title} height={75}>
|
||||||
|
<View>
|
||||||
|
<Pressable style={[Styles.itemSelectModal]} onPress={() => {
|
||||||
|
onSelect({ val: 'dinas', label: 'Dinas' })
|
||||||
|
setChoose('dinas')
|
||||||
|
close(false)
|
||||||
|
}}>
|
||||||
|
<Text style={[Styles.textDefaultSemiBold]}>Dinas</Text>
|
||||||
|
<AntDesign name="check" size={20} />
|
||||||
|
</Pressable>
|
||||||
|
<Pressable style={[Styles.itemSelectModal]}>
|
||||||
|
<Text>Adat</Text>
|
||||||
|
</Pressable>
|
||||||
|
<Pressable style={[Styles.itemSelectModal]}>
|
||||||
|
<Text>Karang Taruna</Text>
|
||||||
|
</Pressable>
|
||||||
|
<Pressable style={[Styles.itemSelectModal]}>
|
||||||
|
<Text>PKK</Text>
|
||||||
|
</Pressable>
|
||||||
|
</View>
|
||||||
|
</DrawerBottom>
|
||||||
|
)
|
||||||
|
}
|
||||||
46
components/selectForm.tsx
Normal file
46
components/selectForm.tsx
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
import Styles from "@/constants/Styles";
|
||||||
|
import { Feather } from "@expo/vector-icons";
|
||||||
|
import { Pressable, Text, View } from "react-native";
|
||||||
|
|
||||||
|
|
||||||
|
type Props = {
|
||||||
|
label?: string;
|
||||||
|
placeholder?: string;
|
||||||
|
value: string;
|
||||||
|
onPress?: () => void;
|
||||||
|
info?: string;
|
||||||
|
itemLeft?: React.ReactNode;
|
||||||
|
error?: boolean;
|
||||||
|
errorText?: string;
|
||||||
|
required?: boolean;
|
||||||
|
round?: boolean
|
||||||
|
};
|
||||||
|
|
||||||
|
export default function SelectForm({ label, value, placeholder, onPress, info, error, errorText, required, itemLeft, round }: Props) {
|
||||||
|
return (
|
||||||
|
<View style={[Styles.mb10]}>
|
||||||
|
{
|
||||||
|
label != undefined && (
|
||||||
|
<Text style={[Styles.mb05, { textTransform: "capitalize" }, error && Styles.cError]}>
|
||||||
|
{label}
|
||||||
|
{required && (<Text style={Styles.cError}>*</Text>)}
|
||||||
|
</Text>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
<Pressable onPress={onPress}>
|
||||||
|
<View style={[Styles.inputRoundForm, Styles.inputRoundFormRight, error && { borderColor: "red" }, round && Styles.round30, Styles.pv10]}>
|
||||||
|
<Feather name="chevron-right" size={20} color="grey" />
|
||||||
|
{
|
||||||
|
value ? (
|
||||||
|
<Text style={[Styles.cBlack]}>{value}</Text>
|
||||||
|
) : (
|
||||||
|
<Text style={[Styles.cGray]}>{placeholder}</Text>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
</View>
|
||||||
|
</Pressable>
|
||||||
|
{error && (<Text style={[Styles.textInformation, Styles.cError]}>{errorText}</Text>)}
|
||||||
|
{info != undefined && (<Text style={[Styles.textInformation, , Styles.cGray]}>{info}</Text>)}
|
||||||
|
</View>
|
||||||
|
)
|
||||||
|
}
|
||||||
@@ -104,6 +104,12 @@ const Styles = StyleSheet.create({
|
|||||||
ph15: {
|
ph15: {
|
||||||
paddingHorizontal: 15,
|
paddingHorizontal: 15,
|
||||||
},
|
},
|
||||||
|
pv10: {
|
||||||
|
paddingVertical: 10
|
||||||
|
},
|
||||||
|
pv15: {
|
||||||
|
paddingVertical: 15
|
||||||
|
},
|
||||||
p15: {
|
p15: {
|
||||||
padding: 15
|
padding: 15
|
||||||
},
|
},
|
||||||
@@ -325,6 +331,21 @@ const Styles = StyleSheet.create({
|
|||||||
paddingHorizontal: 20,
|
paddingHorizontal: 20,
|
||||||
height: '80%'
|
height: '80%'
|
||||||
},
|
},
|
||||||
|
wrapBtnTab: {
|
||||||
|
justifyContent: 'space-between',
|
||||||
|
flexDirection: 'row',
|
||||||
|
marginBottom: 15,
|
||||||
|
borderRadius: 20,
|
||||||
|
padding: 5,
|
||||||
|
backgroundColor: 'white',
|
||||||
|
},
|
||||||
|
itemSelectModal: {
|
||||||
|
padding: 10,
|
||||||
|
flexDirection: 'row',
|
||||||
|
justifyContent: 'space-between',
|
||||||
|
borderColor: '#d6d8f6',
|
||||||
|
borderBottomWidth: 1
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
export default Styles;
|
export default Styles;
|
||||||
Reference in New Issue
Block a user