Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
beasy-mobile
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
4
Issues
4
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
G
beasy-mobile
Commits
208bfd80
You need to sign in or sign up before continuing.
Commit
208bfd80
authored
Jul 01, 2024
by
G
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename the Input component to InputWithTopLabel
parent
29dbf528
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
11 deletions
+15
-11
InputWithTopLabel.tsx
src/components/InputWithTopLabel.tsx
+3
-3
NumberAndOtpForPaymentScreen.tsx
src/screens/NumberAndOtpForPaymentScreen.tsx
+7
-3
PaymentAmountInputScreen.tsx
src/screens/PaymentAmountInputScreen.tsx
+2
-2
UserLoginScreen.tsx
src/screens/UserLoginScreen.tsx
+3
-3
No files found.
src/components/Input.tsx
→
src/components/Input
WithTopLabel
.tsx
View file @
208bfd80
import
type
{
VariantProps
}
from
"@shopify/restyle"
;
import
type
{
Theme
}
from
"@themes/Theme"
;
import
{
TextInput
}
from
"react-native"
;
import
type
{
TextInputProps
}
from
"react-native"
;
import
{
TextInput
}
from
"react-native"
;
import
Box
from
"./bases/Box"
;
import
Text
from
"./bases/Text"
;
...
...
@@ -10,7 +10,7 @@ type Props = TextInputProps &
label
:
string
;
};
const
Input
=
({
label
,
textVariants
,
...
rest
}:
Props
)
=>
{
const
Input
WithTopLabel
=
({
label
,
textVariants
,
...
rest
}:
Props
)
=>
{
return
(
<
Box
>
<
Text
variant=
{
textVariants
}
>
{
label
}
</
Text
>
...
...
@@ -21,4 +21,4 @@ const Input = ({ label, textVariants, ...rest }: Props) => {
);
};
export
default
Input
;
export
default
Input
WithTopLabel
;
src/screens/NumberAndOtpForPaymentScreen.tsx
View file @
208bfd80
...
...
@@ -2,7 +2,7 @@ import type { PaymentStackScreenComponentProps } from "@/navigations/Types";
import
BeasyLogoIcon
from
"@components/BeasyLogoIcon"
;
import
Button
from
"@components/Button"
;
import
GoBackIconButton
from
"@components/GoBackIconButton"
;
import
Input
from
"@components/Input
"
;
import
Input
WithTopLabel
from
"@components/InputWithTopLabel
"
;
import
PaymentOption
from
"@components/PaymentOption"
;
import
BackgroundGreenWhiteContentArea
from
"@components/backgrounds/BackgroundGreenWhiteContentArea"
;
import
Box
from
"@components/bases/Box"
;
...
...
@@ -40,12 +40,16 @@ const NumberAndOtpForPaymentScreen: PaymentStackScreenComponentProps<
<
PaymentOption
onPress=
{
()
=>
{}
}
paymentMethod=
{
"OM"
}
/>
</
Box
>
<
Box
mb=
{
"l"
}
>
<
Input
<
Input
WithTopLabel
label=
"Entrez le numero"
keyboardType=
"numeric"
textVariants=
{
"black"
}
/>
<
Input
label=
"Code OTP"
keyboardType=
"numeric"
textVariants=
{
"black"
}
/>
<
InputWithTopLabel
label=
"Code OTP"
keyboardType=
"numeric"
textVariants=
{
"black"
}
/>
</
Box
>
<
Button
onPress=
{
()
=>
{}
}
...
...
src/screens/PaymentAmountInputScreen.tsx
View file @
208bfd80
...
...
@@ -3,7 +3,7 @@ import type { PaymentStackScreenComponentProps } from "@/navigations/Types";
import
BeasyLogoIcon
from
"@components/BeasyLogoIcon"
;
import
Button
from
"@components/Button"
;
import
GoBackIconButton
from
"@components/GoBackIconButton"
;
import
Input
from
"@components/Input
"
;
import
Input
WithTopLabel
from
"@components/InputWithTopLabel
"
;
import
PaymentOption
from
"@components/PaymentOption"
;
import
BackgroundDefault
from
"@components/backgrounds/BackgroundDefault"
;
import
Box
from
"@components/bases/Box"
;
...
...
@@ -134,7 +134,7 @@ const PaymentAmountInputScreen: PaymentStackScreenComponentProps<"paymentAmountI
<
PaymentOption
onPress=
{
()
=>
{}
}
paymentMethod=
{
paymentType
}
/>
</
Box
>
<
Box
mb=
{
"xl"
}
>
<
Input
<
Input
WithTopLabel
label=
"Entrez le montant"
autoFocus=
{
true
}
keyboardType=
"numeric"
...
...
src/screens/UserLoginScreen.tsx
View file @
208bfd80
...
...
@@ -4,7 +4,7 @@ import authenticateUser from "@/utils/requests/authenticateUser";
import
getUserInformations
from
"@/utils/requests/userInformations"
;
import
Button
from
"@components/Button"
;
import
ContainerBorderTopCurved
from
"@components/ContainerBorderTopCurved"
;
import
Input
from
"@components/Input
"
;
import
Input
WithTopLabel
from
"@components/InputWithTopLabel
"
;
import
BackgroundDefault
from
"@components/backgrounds/BackgroundDefault"
;
import
Box
from
"@components/bases/Box"
;
import
Text
from
"@components/bases/Text"
;
...
...
@@ -107,14 +107,14 @@ const UserLoginScreen: MainStackScreenComponentProps<"userLoginScreen"> = ({ nav
</
Box
>
<
Box
gap=
{
"m"
}
>
<
Input
<
Input
WithTopLabel
label=
"Email"
// value={email}
autoCorrect=
{
false
}
textContentType=
"emailAddress"
onChangeText=
{
setEmail
}
/>
<
Input
<
Input
WithTopLabel
label=
"Mot de passe"
secureTextEntry=
{
true
}
textContentType=
"oneTimeCode"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment