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
18e1098c
Commit
18e1098c
authored
Sep 06, 2025
by
G
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: PaymentType component displaying a logo icon with the payment type passed as prop.
parent
69fa0ea7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
PaymentType.tsx
src/features/pay/components/PaymentType.tsx
+30
-0
No files found.
src/features/pay/components/PaymentType.tsx
0 → 100644
View file @
18e1098c
/** biome-ignore-all lint/style/useNamingConvention: <The codes are expected as is..> */
import
{
asp
as
g
}
from
"@asp/asp"
;
import
{
Image
}
from
"expo-image"
;
import
type
{
FC
}
from
"react"
;
import
{
TouchableOpacity
,
type
TouchableOpacityProps
}
from
"react-native"
;
import
type
{
PaymentTypeCode
}
from
"../types"
;
const
Images
=
{
OM
:
require
(
"@assets/operators/orange_money.png"
),
MTN
:
require
(
"@assets/operators/mtn_money.png"
),
WAVE
:
require
(
"@assets/operators/wave_money.png"
),
FLOOZ
:
require
(
"@assets/operators/moov_money.png"
),
CB
:
require
(
"@assets/operators/visa_card.png"
),
};
type
PaymentTypeProps
=
Omit
<
TouchableOpacityProps
,
"children"
>
&
{
type
:
PaymentTypeCode
};
const
PaymentType
:
FC
<
PaymentTypeProps
>
=
({
style
,
type
,
...
rest
})
=>
{
return
(
<
TouchableOpacity
style=
{
[
g
.
rounded_md
,
g
.
overflow_hidden
,
{
height
:
70
,
width
:
100
},
style
]
}
{
...
rest
}
>
<
Image
source=
{
Images
[
type
]
}
style=
{
[
g
.
flex_1
]
}
cachePolicy=
{
"memory-disk"
}
/>
</
TouchableOpacity
>
);
};
export
default
PaymentType
;
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