upd: projeect

Deskripsi:
- ui list project
- ui grid project
- ui create project

No Issues
This commit is contained in:
amel
2025-03-05 15:35:21 +08:00
parent 6afe99c314
commit 8806f33a8d
17 changed files with 400 additions and 20 deletions

View File

@@ -1,5 +1,5 @@
import Styles from "@/constants/Styles";
import { View, TextInput, Text } from "react-native";
import { View, TextInput, Text, Dimensions } from "react-native";
type Props = {
label?: string;
@@ -13,10 +13,12 @@ type Props = {
required?: boolean;
type: 'default' | 'visible-password' | 'numeric'
round?: boolean
width?: number
};
export function InputForm({ label, placeholder, onChange, info, error, errorText, required, itemLeft, itemRight, type, round }: Props) {
export function InputForm({ label, placeholder, onChange, info, error, errorText, required, itemLeft, itemRight, type, round, width }: Props) {
const lebar = Dimensions.get("window").width;
if (itemLeft != undefined || itemRight != undefined) {
return (
@@ -35,6 +37,7 @@ export function InputForm({ label, placeholder, onChange, info, error, errorText
placeholder={placeholder}
keyboardType={type}
onChangeText={onChange}
style={{ width: width && lebar * width / 100 }}
/>
</View>
{error && (<Text style={[Styles.textInformation, Styles.cError]}>{errorText}</Text>)}