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
80cfa6f3
Commit
80cfa6f3
authored
Apr 25, 2024
by
G
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adjustement for the introduction of textVariants
parent
baadde83
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
63 additions
and
8 deletions
+63
-8
BalanceContainer.tsx
src/components/BalanceContainer.tsx
+3
-1
Input.tsx
src/components/Input.tsx
+8
-5
NumberAndOtpForPaymentScreen.tsx
src/screens/NumberAndOtpForPaymentScreen.tsx
+50
-0
UserLoginScreen.tsx
src/screens/UserLoginScreen.tsx
+2
-2
No files found.
src/components/BalanceContainer.tsx
View file @
80cfa6f3
...
@@ -28,7 +28,9 @@ const BalanceContainer = ({ label, balance }: Props) => {
...
@@ -28,7 +28,9 @@ const BalanceContainer = ({ label, balance }: Props) => {
</
Box
>
</
Box
>
<
Box
alignItems=
{
"center"
}
gap=
{
"s"
}
>
<
Box
alignItems=
{
"center"
}
gap=
{
"s"
}
>
<
Text
fontSize=
{
30
}
>
{
balance
}
</
Text
>
<
Text
fontSize=
{
30
}
variant=
{
"black"
}
>
{
balance
}
</
Text
>
<
Text
color=
{
"gray"
}
>
{
label
}
</
Text
>
<
Text
color=
{
"gray"
}
>
{
label
}
</
Text
>
</
Box
>
</
Box
>
</
Box
>
</
Box
>
...
...
src/components/Input.tsx
View file @
80cfa6f3
import
type
{
VariantProps
}
from
"@shopify/restyle"
;
import
type
{
Theme
}
from
"@themes/Theme"
;
import
{
TextInput
}
from
"react-native"
;
import
{
TextInput
}
from
"react-native"
;
import
type
{
TextInputProps
}
from
"react-native"
;
import
type
{
TextInputProps
}
from
"react-native"
;
import
Box
from
"./bases/Box"
;
import
Box
from
"./bases/Box"
;
import
Text
from
"./bases/Text"
;
import
Text
from
"./bases/Text"
;
type
Props
=
TextInputProps
&
{
type
Props
=
TextInputProps
&
label
:
string
;
VariantProps
<
Theme
,
"textVariants"
,
"textVariants"
>
&
{
};
label
:
string
;
};
const
Input
=
({
label
,
...
rest
}:
Props
)
=>
{
const
Input
=
({
label
,
textVariants
,
...
rest
}:
Props
)
=>
{
return
(
return
(
<
Box
>
<
Box
>
<
Text
color=
{
"gray"
}
>
{
label
}
</
Text
>
<
Text
variant=
{
textVariants
}
>
{
label
}
</
Text
>
<
Box
backgroundColor=
{
"lightGray"
}
height=
{
50
}
borderRadius=
{
10
}
my=
{
"m"
}
p=
{
"s"
}
>
<
Box
backgroundColor=
{
"lightGray"
}
height=
{
50
}
borderRadius=
{
10
}
my=
{
"m"
}
p=
{
"s"
}
>
<
TextInput
style=
{
{
height
:
"100%"
}
}
{
...
rest
}
/>
<
TextInput
style=
{
{
height
:
"100%"
}
}
{
...
rest
}
/>
</
Box
>
</
Box
>
...
...
src/screens/NumberAndOtpForPaymentScreen.tsx
0 → 100644
View file @
80cfa6f3
import
BeasyLogoIcon
from
"@components/BeasyLogoIcon"
;
import
Button
from
"@components/Button"
;
import
Input
from
"@components/Input"
;
import
BackgroundGreenWhiteContentArea
from
"@components/backgrounds/BackgroundGreenWhiteContentArea"
;
import
Box
from
"@components/bases/Box"
;
import
Text
from
"@components/bases/Text"
;
import
{
SafeAreaView
}
from
"react-native-safe-area-context"
;
const
NumberAndOtpForPaymentScreen
=
()
=>
{
return
(
<
BackgroundGreenWhiteContentArea
>
<
SafeAreaView
>
<
Box
style=
{
{
height
:
"100%"
,
width
:
"100%"
}
}
>
<
Box
px=
{
"l"
}
flexDirection=
{
"row"
}
justifyContent=
{
"space-between"
}
alignItems=
{
"center"
}
>
<
BeasyLogoIcon
/>
</
Box
>
<
Box
height=
{
122
}
alignItems=
{
"center"
}
justifyContent=
{
"center"
}
>
<
Text
color=
{
"white"
}
>
Montant à payer
</
Text
>
<
Text
color=
{
"white"
}
fontSize=
{
30
}
>
78000
</
Text
>
</
Box
>
<
Box
p=
{
"l"
}
paddingTop=
{
"x64"
}
>
<
Box
mb=
{
"l"
}
>
<
Input
label=
"Entrez le numero"
keyboardType=
"numeric"
textVariants=
{
"black"
}
/>
<
Input
label=
"Code OTP"
keyboardType=
"numeric"
textVariants=
{
"black"
}
/>
</
Box
>
<
Button
onPress=
{
()
=>
{}
}
variant=
{
"full"
}
textVariants=
{
"primary"
}
label=
"Paiement"
/>
</
Box
>
</
Box
>
</
SafeAreaView
>
</
BackgroundGreenWhiteContentArea
>
);
};
export
default
NumberAndOtpForPaymentScreen
;
src/screens/UserLoginScreen.tsx
View file @
80cfa6f3
...
@@ -35,8 +35,8 @@ const UserLoginScreen = () => {
...
@@ -35,8 +35,8 @@ const UserLoginScreen = () => {
</
Box
>
</
Box
>
<
ContainerBorderTopCurved
>
<
ContainerBorderTopCurved
>
<
Box
p=
{
"l"
}
paddingTop=
{
"x100"
}
mb=
{
"s"
}
>
<
Box
p=
{
"l"
}
paddingTop=
{
"x100"
}
mb=
{
"s"
}
>
<
Box
>
<
Box
mb=
{
"l"
}
>
<
Text
fontSize=
{
40
}
fontWeight=
{
"bold"
}
>
<
Text
fontSize=
{
40
}
fontWeight=
{
"bold"
}
variant=
{
"black"
}
>
Connexion
Connexion
</
Text
>
</
Text
>
<
Text
color=
{
"gray"
}
>
Bienvenue, vous nous avez manqué !
</
Text
>
<
Text
color=
{
"gray"
}
>
Bienvenue, vous nous avez manqué !
</
Text
>
...
...
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