upd: tampilan
Deskripsi: - vertical center icon list dan grid pada list project dan divisi - mb list lembaga desa dan search page No Issues
This commit is contained in:
@@ -180,7 +180,7 @@ export default function ListDivision() {
|
|||||||
</View>
|
</View>
|
||||||
}
|
}
|
||||||
|
|
||||||
<View style={[Styles.rowSpaceBetween]}>
|
<View style={[Styles.rowSpaceBetween, { alignItems: 'center' }]}>
|
||||||
<InputSearch width={68} onChange={setSearch} />
|
<InputSearch width={68} onChange={setSearch} />
|
||||||
<Pressable
|
<Pressable
|
||||||
onPress={() => {
|
onPress={() => {
|
||||||
|
|||||||
@@ -126,7 +126,7 @@ export default function Index() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<View style={[Styles.p15, { flex: 1 }]}>
|
<View style={[Styles.p15, { flex: 1 }]}>
|
||||||
<View>
|
<View style={[Styles.mb10]}>
|
||||||
<View style={[Styles.wrapBtnTab]}>
|
<View style={[Styles.wrapBtnTab]}>
|
||||||
<ButtonTab
|
<ButtonTab
|
||||||
active={status == "false" ? "false" : "true"}
|
active={status == "false" ? "false" : "true"}
|
||||||
|
|||||||
@@ -178,7 +178,7 @@ export default function ListProject() {
|
|||||||
n={4}
|
n={4}
|
||||||
/>
|
/>
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
<View style={[Styles.rowSpaceBetween]}>
|
<View style={[Styles.rowSpaceBetween, { alignItems: 'center' }]}>
|
||||||
<InputSearch width={68} onChange={setSearch} />
|
<InputSearch width={68} onChange={setSearch} />
|
||||||
<Pressable
|
<Pressable
|
||||||
onPress={() => {
|
onPress={() => {
|
||||||
|
|||||||
@@ -75,7 +75,6 @@ export default function Search() {
|
|||||||
headerTitleAlign: 'center'
|
headerTitleAlign: 'center'
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
{/* <ScrollView> */}
|
|
||||||
<View style={[Styles.p15]}>
|
<View style={[Styles.p15]}>
|
||||||
<InputSearch onChange={handleSearch} />
|
<InputSearch onChange={handleSearch} />
|
||||||
{
|
{
|
||||||
@@ -163,13 +162,12 @@ export default function Search() {
|
|||||||
|
|
||||||
</View>
|
</View>
|
||||||
:
|
:
|
||||||
<View style={Styles.contentItemCenter}>
|
<View style={[Styles.contentItemCenter, Styles.mt10]}>
|
||||||
<Text style={[Styles.textInformation, Styles.cGray]}>Tidak ada data</Text>
|
<Text style={[Styles.textInformation, Styles.cGray]}>Tidak ada data</Text>
|
||||||
</View>
|
</View>
|
||||||
}
|
}
|
||||||
|
|
||||||
</View>
|
</View>
|
||||||
{/* </ScrollView> */}
|
|
||||||
</SafeAreaView>
|
</SafeAreaView>
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -19,15 +19,16 @@ type Props = {
|
|||||||
value?: string
|
value?: string
|
||||||
disable?: boolean
|
disable?: boolean
|
||||||
multiline?: boolean
|
multiline?: boolean
|
||||||
|
mb?: boolean
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
export function InputForm({ label, value, placeholder, onChange, info, disable, error, errorText, required, itemLeft, itemRight, type, round, width, bg, multiline }: Props) {
|
export function InputForm({ label, value, placeholder, onChange, info, disable, error, errorText, required, itemLeft, itemRight, type, round, width, bg, multiline, mb = true }: Props) {
|
||||||
const lebar = Dimensions.get("window").width;
|
const lebar = Dimensions.get("window").width;
|
||||||
|
|
||||||
if (itemLeft != undefined || itemRight != undefined) {
|
if (itemLeft != undefined || itemRight != undefined) {
|
||||||
return (
|
return (
|
||||||
<View style={{ marginBottom: 10 }}>
|
<View style={[mb && Styles.mb10]}>
|
||||||
{
|
{
|
||||||
label != undefined && (
|
label != undefined && (
|
||||||
<Text style={[{ marginBottom: 5, textTransform: "capitalize" }, error && Styles.cError]}>
|
<Text style={[{ marginBottom: 5, textTransform: "capitalize" }, error && Styles.cError]}>
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ export default function InputSearch({ onChange, width, value }: { onChange?: (va
|
|||||||
width={width}
|
width={width}
|
||||||
bg="white"
|
bg="white"
|
||||||
value={value}
|
value={value}
|
||||||
|
mb={false}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@@ -515,7 +515,7 @@ const Styles = StyleSheet.create({
|
|||||||
wrapBtnTab: {
|
wrapBtnTab: {
|
||||||
justifyContent: 'space-between',
|
justifyContent: 'space-between',
|
||||||
flexDirection: 'row',
|
flexDirection: 'row',
|
||||||
marginBottom: 15,
|
marginBottom: 10,
|
||||||
borderRadius: 20,
|
borderRadius: 20,
|
||||||
padding: 5,
|
padding: 5,
|
||||||
backgroundColor: 'white',
|
backgroundColor: 'white',
|
||||||
|
|||||||
Reference in New Issue
Block a user