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
10011035
Commit
10011035
authored
May 08, 2024
by
G
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use interface PaymentCode from request module for code coverage
parent
189a2b57
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
PaymentOption.tsx
src/components/PaymentOption.tsx
+4
-3
No files found.
src/components/PaymentOption.tsx
View file @
10011035
import
type
{
PaymentCode
}
from
"@/utils/requests/Types"
;
import
{
images
}
from
"@styles/Commons"
;
import
{
Image
,
TouchableOpacity
}
from
"react-native"
;
import
Box
from
"./bases/Box"
;
type
PaymentOptions
=
"O
RANGE
"
|
"MTN"
|
"FLOOZ"
|
"WAVE"
|
"CB"
;
type
PaymentOptions
=
"O
M
"
|
"MTN"
|
"FLOOZ"
|
"WAVE"
|
"CB"
;
type
Props
=
{
onPress
:
()
=>
void
;
paymentMethod
:
Payment
Options
;
paymentMethod
:
Payment
Code
;
};
const
PaymentOptionContainer
=
({
children
}:
{
children
:
React
.
ReactNode
})
=>
{
...
...
@@ -70,7 +71,7 @@ const Cb = () => {
const
PaymentOption
=
({
onPress
,
paymentMethod
}:
Props
)
=>
{
return
(
<
TouchableOpacity
style=
{
{
width
:
"100%"
,
height
:
"100%"
}
}
onPress=
{
onPress
}
>
{
paymentMethod
===
"O
RANGE
"
&&
<
Orange
/>
}
{
paymentMethod
===
"O
M
"
&&
<
Orange
/>
}
{
paymentMethod
===
"MTN"
&&
<
Mtn
/>
}
{
paymentMethod
===
"FLOOZ"
&&
<
Flooz
/>
}
{
paymentMethod
===
"WAVE"
&&
<
Wave
/>
}
...
...
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