From c6635fb88e701995311eb2f2523682e9d0115483 Mon Sep 17 00:00:00 2001 From: amel Date: Tue, 24 Jun 2025 12:24:25 +0800 Subject: [PATCH] fix: tampilan Deskripsi: - input form l - fitur wakil super admin No Issues --- app/(application)/feature.tsx | 2 +- components/auth/viewLogin.tsx | 8 ++++---- components/inputForm.tsx | 6 ++++-- constants/Styles.ts | 3 +++ 4 files changed, 12 insertions(+), 7 deletions(-) diff --git a/app/(application)/feature.tsx b/app/(application)/feature.tsx index 8490bac..3171a0b 100644 --- a/app/(application)/feature.tsx +++ b/app/(application)/feature.tsx @@ -25,7 +25,7 @@ export default function Feature() { } text="Pengumuman" onPress={() => { router.push('/announcement') }} /> } text="Diskusi" onPress={() => { router.push('/discussion?active=true') }} /> - + } text="Anggota" onPress={() => { router.push('/member') }} /> } text="Jabatan" onPress={() => { router.push('/position') }} /> { diff --git a/components/auth/viewLogin.tsx b/components/auth/viewLogin.tsx index efa875f..f1599bf 100644 --- a/components/auth/viewLogin.tsx +++ b/components/auth/viewLogin.tsx @@ -2,7 +2,7 @@ import Styles from "@/constants/Styles" import { apiCheckPhoneLogin, apiSendOtp } from "@/lib/api" import AsyncStorage from "@react-native-async-storage/async-storage" import { useState } from "react" -import { Image, Text, ToastAndroid, View } from "react-native" +import { Image, SafeAreaView, Text, ToastAndroid, View } from "react-native" import { ButtonForm } from "../buttonForm" import { InputForm } from "../inputForm" import ModalLoading from "../modalLoading" @@ -40,8 +40,8 @@ export default function ViewLogin({ onValidate }: Props) { }; return ( - <> - + + } - + ) } \ No newline at end of file diff --git a/components/inputForm.tsx b/components/inputForm.tsx index b557145..3790b6e 100644 --- a/components/inputForm.tsx +++ b/components/inputForm.tsx @@ -34,7 +34,7 @@ export function InputForm({ label, value, placeholder, onChange, info, disable, ) } - + {itemRight != undefined ? itemRight : itemLeft} {error && ({errorText})} @@ -69,6 +70,7 @@ export function InputForm({ label, value, placeholder, onChange, info, disable, keyboardType={type} style={[Styles.inputRoundForm, error && { borderColor: "red" }, round && Styles.round30, { backgroundColor: bg && bg == 'white' ? 'white' : 'transparent' }]} onChangeText={onChange} + placeholderTextColor={'gray'} /> {error && ({errorText})} {info != undefined && ({info})} diff --git a/constants/Styles.ts b/constants/Styles.ts index 4bb4a34..123de9d 100644 --- a/constants/Styles.ts +++ b/constants/Styles.ts @@ -158,6 +158,9 @@ const Styles = StyleSheet.create({ p10: { padding: 10 }, + p20: { + padding: 20 + }, round10: { borderRadius: 10 },