Commit e1d651f2 authored by Mithunan Sivakumar's avatar Mithunan Sivakumar
Browse files

-Quick fix login component styling bug

parent 18911d77
......@@ -20,7 +20,7 @@ export default function CustomInput({required, errorMessage, error, name, placeh
container: {
backgroundColor: "white",
width: "100%",
minHeight: "30px",
minHeight: 30,
borderColor: "#e8e8e8",
borderWidth: 1,
......@@ -31,7 +31,7 @@ export default function CustomInput({required, errorMessage, error, name, placeh
input: {
paddingHorizontal: 10,
alignItems: "center",
minHeight: "30px",
minHeight: 30,
},
errorText: {
color: "red",
......
......@@ -84,7 +84,6 @@ const { formState: { errors }, handleSubmit } = methods;
<View>
<Image source={Logo} style={[styles.logo, {height: height* 0.3}]} resizeMode="contain"/>
<FormProvider {...methods}>
<form onSubmit={handleSubmit(onSubmit)}>
{isLogin ? null : <CustomInput required={isLogin ? false : true} error={errors.username ? true : false} errorMessage="Du må fylle inn brukernavn" name="username" placeholder="username" /> }
<CustomInput required={true} error={errors.email ? true : false } errorMessage="Du må fylle inn e-post" name="email" placeholder="email" />
<CustomInput required={true} error={errors.password ? true : false } errorMessage="Passorder må oppfylle krav ..." name="password" secureTextEntry={true} placeholder="password" />
......@@ -96,7 +95,6 @@ const { formState: { errors }, handleSubmit } = methods;
</Text>
</Pressable>
</View>
</form>
</FormProvider>
</View>
);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment