upd: project
Deskripsi: - ui detail project - ui create project - ui edit tambah tugas - ui edit tambah file - ui edit judul project - ui cancel project No Issues
This commit is contained in:
@@ -14,10 +14,11 @@ type Props = {
|
||||
type: 'default' | 'visible-password' | 'numeric'
|
||||
round?: boolean
|
||||
width?: number
|
||||
bg?: 'white' | 'transparent'
|
||||
};
|
||||
|
||||
|
||||
export function InputForm({ label, placeholder, onChange, info, error, errorText, required, itemLeft, itemRight, type, round, width }: Props) {
|
||||
export function InputForm({ label, placeholder, onChange, info, error, errorText, required, itemLeft, itemRight, type, round, width, bg }: Props) {
|
||||
const lebar = Dimensions.get("window").width;
|
||||
|
||||
if (itemLeft != undefined || itemRight != undefined) {
|
||||
@@ -37,7 +38,7 @@ export function InputForm({ label, placeholder, onChange, info, error, errorText
|
||||
placeholder={placeholder}
|
||||
keyboardType={type}
|
||||
onChangeText={onChange}
|
||||
style={{ width: width && lebar * width / 100 }}
|
||||
style={{ width: width && lebar * width / 100, backgroundColor: bg && bg == 'white' ? 'white' : 'transparent' }}
|
||||
/>
|
||||
</View>
|
||||
{error && (<Text style={[Styles.textInformation, Styles.cError]}>{errorText}</Text>)}
|
||||
@@ -61,7 +62,7 @@ export function InputForm({ label, placeholder, onChange, info, error, errorText
|
||||
<TextInput
|
||||
placeholder={placeholder}
|
||||
keyboardType={type}
|
||||
style={[Styles.inputRoundForm, error && { borderColor: "red" }, round && Styles.round30]}
|
||||
style={[Styles.inputRoundForm, error && { borderColor: "red" }, round && Styles.round30, { backgroundColor: bg && bg == 'white' ? 'white' : 'transparent' }]}
|
||||
onChangeText={onChange}
|
||||
/>
|
||||
{error && (<Text style={[Styles.textInformation, Styles.cError]}>{errorText}</Text>)}
|
||||
|
||||
Reference in New Issue
Block a user